python - boto3 s3 put_object times out -


i've got python script works on machine (osx, python 2.7.13, boto3 1.4.4) won't work colleague (windows7, otherwise same).

the authentication seems work, , can both s3's list_objects_v2 , get_object. when tries upload put_object, times out. here a full log; upload starts @ line 45.

i've tried using credentials , works. he's tried uploading tiny file , it'll work when it's in bytes range, kb big it. we've tried on windows machine on internet connection no luck.

my upload code pretty simple:

with open("tmp_build.zip", "r") zip_to_upload:   upload_response = s3.put_object(bucket=target_bucket, body=zip_to_upload, key=build_type+".zip") 

the key resolves test.zip in our runs, , file 15mb.

why failing on windows? more debug info can give you?

using inspiration https://github.com/boto/boto3/issues/870 issue, added .read() body parameter, , lo works.


Comments