You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ python3 ./bug.py ||echo failed
0%|| 0.00/4.00 [00:00<?, ?B/s]upload Traceback (most recent call last):
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/boto3/s3/transfer.py", line 292, in upload_file
future.result()
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/s3transfer/futures.py", line 103, in result
returnself._coordinator.result()
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/s3transfer/futures.py", line 266, in result
raise self._exception
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/s3transfer/tasks.py", line 139, in __call__
return self._execute_main(kwargs)
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/s3transfer/tasks.py", line 162, in _execute_main
return_value = self._main(**kwargs)
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/s3transfer/upload.py", line 758, in _main
client.put_object(Bucket=bucket, Key=key, Body=body, **extra_args)
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/botocore/client.py", line 980, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.NoSuchBucket: An error occurred (NoSuchBucket) when calling the PutObject operation: The specified bucket does not exist
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./bug.py", line 31, in<module>
transfer_manager.upload_file(local_path, 'non-existing-bucket', 'test',
File "/opt/homebrew/anaconda3/envs/PythonScripts/lib/python3.10/site-packages/boto3/s3/transfer.py", line 298, in upload_file
raise S3UploadFailedError(
boto3.exceptions.S3UploadFailedError: Failed to upload /tmp/test to non-existing-bucket/test: An error occurred (NoSuchBucket) when calling the PutObject operation: The specified bucket does not exist
0%|| 0.00/4.00 [00:01<?, ?B/s]upload
failed
Additional Information/Context
No response
SDK version used
boto3==1.28.52
Environment details (OS name and version, etc.)
macos, docker
The text was updated successfully, but these errors were encountered:
Describe the bug
Transfer Manager fails to upload file however, it does not provide any errors.
Expected Behavior
botocore.errorfactory.NoSuchBucket should be thrown
Current Behavior
Example outputs:
Reproduction Steps
Using Transfer Manger:
Possible Solution
Using S3Tranfer directly fails with exception:
Output:
Additional Information/Context
No response
SDK version used
boto3==1.28.52
Environment details (OS name and version, etc.)
macos, docker
The text was updated successfully, but these errors were encountered: