Closed mastern2k3 closed 7 months ago
I can't use put_object
, e.g.:
with open('file.txt') as file_handle:
client.put_object(Bucket=bucket, Key=key, Body=file_handle)
Because i get:
E botocore.exceptions.ClientError: An error occurred (413) when calling the PutObject operation: Request Entity Too Large
The S3 upload_file
operation is not part of aiobotocore
, nor botocore
. It is offered as part of the boto3 library. You might want to check out https://github.com/terrycain/aioboto3 for an async port.
Describe the bug I'm creating an s3 client just as described in the examples, and using
upload_file()
which is a boto s3 client command and described in the aiobotocore_s3 stubs and I'm getting an error saying the function doesn't exist.Other functions like
create_bucket
work.My code:
From stubs:
Checklist
pip check
passes without errorspip freeze
resultspip freeze results
Environment: