question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
illyakaynovcommented, Jun 24, 2022

Hey, this is still an issue for me. Was there any progress?

0reactions
no-response[bot]commented, Feb 26, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found