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

PermanentRedirect Error. #2

Closed
lfx opened this issue Aug 8, 2018 · 9 comments
Closed

PermanentRedirect Error. #2

lfx opened this issue Aug 8, 2018 · 9 comments

Comments

@lfx
Copy link

lfx commented Aug 8, 2018

Hello I'm keep getting this error:

<?xml version="1.0" encoding="UTF-8"?>
<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>s3.amazonaws.com</Bucket><Endpoint>s3.amazonaws.com</Endpoint><RequestId>0A6606701931F006</RequestId><HostId>sLAQDaPDRZL/XotOOaJce7vHbB5ys+NhZ+1uIVHeSVwZZLg5B4aMe0uiDJJ3IzgCGwTpm9tZfsM=</HostId></Error>
Error: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.

My region settings are the same for cli and bucket location. And my aws s3 cli works without any warnings.

Would you mind to get me some pointers where to look to solve this? Thank you!

Your tool looks like awesome project! Thank you for sharing!

@whitfin
Copy link
Owner

whitfin commented Aug 8, 2018

@lfx how are you invoking s3-meta?

@lfx
Copy link
Author

lfx commented Aug 8, 2018

@whitfin like this AWS_ACCESS_KEY_ID=<key> AWS_SECRET_ACCESS_KEY=<secret> AWS_DEFAULT_REGION=us-west-2 s3-meta <bucket> in single line.

@whitfin
Copy link
Owner

whitfin commented Aug 8, 2018

Does your bucket have anything odd about it? Are you using the S3:// prefix maybe?

@lfx
Copy link
Author

lfx commented Aug 8, 2018

No, nothing odd. I thought that maybe because my bucket names has some dashes, so tried some without and it worked.
To make sure, created 3 more buckets with mix dashes and not and all worked. So... it's not dashes :(

@whitfin
Copy link
Owner

whitfin commented Aug 8, 2018

Interesting, I wonder if this is a rusoto_s3 issue - we just delegate over to that library; I can take a look and maybe report upstream if I find anything.

@lfx
Copy link
Author

lfx commented Aug 8, 2018

If you have some special debug build I'm happy to try it and forward logs.

@whitfin
Copy link
Owner

whitfin commented Aug 8, 2018

@lfx there are no logs in this code for AWS authentication, it's all handled by rusoto.

@whitfin
Copy link
Owner

whitfin commented Sep 8, 2018

Hey @lfx!

I updated Rusoto dependencies in v1.0.1, want to check and see if this still happens for you? I'm still unable to reproduce it so far.

@lfx
Copy link
Author

lfx commented Sep 10, 2018

@whitfin yes it works! Awesome! Thank you for this great tool!

🎉 🎉 🎉

@whitfin whitfin closed this as completed Sep 10, 2018
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