Project

General

Profile

Actions

Bug #613

closed

Support #570: Support deploy, Meeting, Training

Support #611: [BE] deploy production beta 1.0

[BE] bug S3 client

Added by Trịnh Thế Định 6 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Start date:
03/18/2024
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

history_uuid='441d68be-e538-11ee-91b0-92628558f805'

botocore.exceptions.ClientError: An error occurred (429) when calling the HeadObject operation (reached max retries: 4): Too Many Requests
ERROR:__main__:Traceback (most recent call last):
  File "/app/worker.py", line 151, in main
    input_file_path = decrypt_document(conversion_history, current_user)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/worker.py", line 61, in decrypt_document
    input_file_path = download_file_from_s3(conversion_history.input_file_path)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/worker.py", line 48, in download_file_from_s3
    download_file(object_key, destination_path)
  File "/app/app/tts_common/services/s3_client.py", line 57, in download_file
    s3_client.download_file(bucket_name, object_key, destination_path)
  File "/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py", line 190, in download_file
    return transfer.download_file(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py", line 326, in download_file
    future.result()
  File "/usr/local/lib/python3.11/site-packages/s3transfer/futures.py", line 103, in result
    s3_client.download_file(bucket_name, object_key, destination_path)
  File "/usr/local/lib/python3.11/site-packages/boto3/s3/inject.py", line 190, in download_file
    return transfer.download_file(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/boto3/s3/transfer.py", line 326, in download_file
    future.result()
  File "/usr/local/lib/python3.11/site-packages/s3transfer/futures.py", line 103, in result
    return self._coordinator.result()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/s3transfer/futures.py", line 266, in result
    raise self._exception
  File "/usr/local/lib/python3.11/site-packages/s3transfer/tasks.py", line 269, in _main
    self._submit(transfer_future=transfer_future, **kwargs)
  File "/usr/local/lib/python3.11/site-packages/s3transfer/download.py", line 354, in _submit
    response = client.head_object(
               ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/botocore/client.py", line 530, in _api_call
    return self._make_api_call(operation_name, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/botocore/client.py", line 964, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (429) when calling the HeadObject operation (reached max retries: 4): Too Many Requests

Actions #1

Updated by Trịnh Thế Định 6 months ago

  • Description updated (diff)
Actions #2

Updated by Trịnh Thế Định 6 months ago

  • Status changed from New to Resolved - Dev
Actions #3

Updated by Trịnh Thế Định 6 months ago

  • Assignee set to Trịnh Thế Định
Actions #4

Updated by Trịnh Thế Định 4 months ago

  • Status changed from Resolved - Dev to Closed
Actions

Also available in: Atom PDF