smore-inc / tinys3

A simple python S3 upload library. Inspired by requests
MIT License
285 stars 54 forks source link

Getting response 200 but still file not uploaded #46

Open sp1rs opened 9 years ago

sp1rs commented 9 years ago

Three steps conn = tinys3.Connection("xxxx", "yyyy", default_bucket="zzzz", endpoint="pqr") f = open('x.txt','w') conn.upload("x.txt", f)

aemitos commented 9 years ago

Same problem here. I uploaded more than a thousand images, and then it starts to throw HTTPError: 403 Client Error: Forbidden for url: http://s3.amazonaws.com/... So, articles said to add an endpoint, and with s3con = tinys3.Connection(S3_ACCESS_KEY,S3_SECRET_KEY,default_bucket=S3_BUCKET,endpoint='s3-us-west-1.amazonaws.com') it shows 207 '[I 151112 16:20:46 connectionpool:207] Starting new HTTP connection (1): s3-us-west-1.amazonaws.com' But I can't find the file in the bucket. Regards

aemitos commented 9 years ago

Sorry, I found that it shows the connection was made but the credentials that I passed was wrong. I put the right credentials and the file are now uploading without problems.