Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting response 200 but still file not uploaded #46

Open
sp1rs opened this issue Sep 25, 2015 · 2 comments
Open

Getting response 200 but still file not uploaded #46

sp1rs opened this issue Sep 25, 2015 · 2 comments

Comments

@sp1rs
Copy link

sp1rs commented Sep 25, 2015

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

@aemitos
Copy link

aemitos commented Nov 12, 2015

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
Copy link

aemitos commented Nov 12, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants