You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imagine there is a number of users that wasted lot of time troubleshooting this, who did not thought of checking the Readme for the error. So catching it and returning something easier to understand (such as "The target bucket is in a different region then the client's eu-west-1. Create a client for the same region.").
It would be better if AWS got their act together and returned a sensible error but I am afraid they are not as flexible as we need :)
The text was updated successfully, but these errors were encountered:
This issue cropped up for me during fetching of s3 maven dependencies with deps.edn and clojure cli.
We created an s3 bucket for a private maven repository in eu-west-1 and updated the :mvn/repos value to include this s3 url. We also have a dependency on datomic and cognitect artifacts, which are on an s3 bucket in us-east-1. I think there is some kind of conflict here when s3 maven repos are not in the same region, when downloading artifacts with deps.edn.
Workaround for us was to create a new bucket in us-east-1.
So now you can detect the 301 and then re-send the request to the correct region. We'll probably automate eventually, but, for now, at least you have the information you need to take corrective action programmatically.
Hello! It would be awesome if aws-api provided a user-friendly error for the problem described here https://github.com/cognitect-labs/aws-api#invalid-location-header-null
I imagine there is a number of users that wasted lot of time troubleshooting this, who did not thought of checking the Readme for the error. So catching it and returning something easier to understand (such as "The target bucket is in a different region then the client's eu-west-1. Create a client for the same region.").
It would be better if AWS got their act together and returned a sensible error but I am afraid they are not as flexible as we need :)
The text was updated successfully, but these errors were encountered: