Boto3 hangs when uploading to S3 if eventlet is used
See original GitHub issue- Python 3.7.0 (on Alpine 3.8)
- Boto3 1.9.96
- Eventlet 0.24.1
WIll hang:
import eventlet
eventlet.monkey_patch()
import boto3
key = 'yourimage.png'
bucket = 'yourbucket'
s3 = boto3.resource('s3')
s3.meta.client.upload_file('/tmp/somefile.png', bucket, key)
Wont hang:
import boto3
key = 'yourimage.png'
bucket = 'yourbucket'
s3 = boto3.resource('s3')
s3.meta.client.upload_file('/tmp/somefile.png', bucket, key)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Celery with Eventlets fails when uploading to s3 (boto3)
Caused by known bug in Eventlet, triggered by PUT-Except-100 ... __class__) if nbytes is None: if buffer: nbytes = len(buffer) else: nbytes ...
Read more >The common mistake people make with boto3 file upload
Taking the wrong steps to upload files from Amazon S3 to the node. Not differentiating between Boto3 File Uploads clients and resources. Using ......
Read more >Uploading files — Boto3 Docs 1.26.34 documentation - AWS
The upload_file method accepts a file name, a bucket name, and an object name. The method handles large files by splitting them into...
Read more >boto3 Sessions, and Why You Should Use Them | by Ben Kehoe
Recently, I ran a poll on twitter asking how people interacted with boto3, the AWS Python SDK (why is called boto3? See the...
Read more >Python, Boto3, and AWS S3: Demystified - Real Python
If you have to manage access to individual objects, then you would use an Object ACL. By default, when you upload an object...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey, this is still an issue for me. Was there any progress?
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don’t have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.