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

Preflight response fails for us-west-1 #90

Closed
niklio opened this issue Jan 21, 2017 · 2 comments
Closed

Preflight response fails for us-west-1 #90

niklio opened this issue Jan 21, 2017 · 2 comments

Comments

@niklio
Copy link

niklio commented Jan 21, 2017

I'm getting a permanent redirect response from amazon when I upload to a bucket in us-west-1
<Error> <Code>PermanentRedirect</Code> <Message> The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. </Message> <Bucket>tetra-memories-development</Bucket> <Endpoint>s3.amazonaws.com</Endpoint> <RequestId>D4FC960AEE757AF2</RequestId> <HostId> +g+KnR0ME3pAcTCYNqeE5nvpAVZwZqItp/BGR9s5RpKhAspm3icawHcU5eKOod2FSzgeSPUBAkE= </HostId> </Error>
I noticed that the utils.py file concatenates the region to the url for every region except us-east-1. It looks like Amazon has changed the urls of other regions too. Would anyone be willing to help me troubleshoot this?

@bradleyg
Copy link
Owner

I've just tested with us-west-1 and all seems to work fine. Can you post your settings (obviously with redacted keys)?

@bradleyg
Copy link
Owner

bradleyg commented Jan 22, 2017

It looks like your bucket is in fact located in us-east-1:

curl -I https://s3.amazonaws.com/tetra-memories-development | grep region
x-amz-bucket-region: us-east-1

Please reopen if you still have issues.

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