S3 Upload Failed - boto3.exceptions.S3UploadFailedError due to unsupported AWS-chunked transfer #4409
Labels
bug
This issue is a confirmed bug.
p2
This is a standard priority issue
potential-regression
Marking this issue as a potential regression to be checked by team member
response-requested
Waiting on additional information or feedback.
s3
Describe the bug
When using the boto3 library to upload a file to an S3-compatible storage endpoint (Infomaniak Cloud in this case), I encountered an error indicating that transferring payloads in multiple chunks using aws-chunked is not supported.
Regression Issue
Expected Behavior
I expected the file to upload successfully to the S3-compatible storage endpoint (https://s3.pub1.infomaniak.cloud) using the boto3 library's upload_file() method, without encountering errors related to unsupported aws-chunked transfer encoding. The operation should complete without issues regardless of the file size or chunking mechanism, as long as the endpoint and credentials are correctly configured.
Current Behavior
The file upload failed with an error indicating that the aws-chunked transfer encoding is not supported by the S3-compatible endpoint. The operation raised a boto3.exceptions.S3UploadFailedError, which internally referenced a botocore.exceptions.ClientError with the message:
An error occurred (NotImplemented) when calling the PutObject operation: Transferring payloads in multiple chunks using aws-chunked is not supported.
As a result, the file could not be uploaded to the S3 bucket.
Reproduction Steps
import boto3
URL = "https://s3.pub1.infomaniak.cloud"
A_KEY = "<>"
S_KEY = "<>"
BUCKET = "<>"
FILE = "<>"
KEY = "<>"
s3_client = boto3.client(
"s3",
endpoint_url=URL,
aws_access_key_id=A_KEY,
aws_secret_access_key=S_KEY,
)
s3_client.upload_file(FILE, BUCKET, KEY)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.36.7
Environment details (OS name and version, etc.)
23.6.0 Darwin Kernel Version 23.6.0
The text was updated successfully, but these errors were encountered: