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
The response I get is IllegalLocationConstraintException. The af-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.
The same code works with buckets in other regions.
Boto3 version - 1.16.56
Interestingly, the same code works with boto3 version < 1.12
The text was updated successfully, but these errors were encountered:
Amazon S3 uses the Domain Name System (DNS) to route requests to facilities that can process them. This system works effectively, but temporary routing errors can occur. If a request arrives at the wrong Amazon S3 location, Amazon S3 responds with a temporary redirect that tells the requester to resend the request to a new endpoint. If a request is incorrectly formed, Amazon S3 uses permanent redirects to provide direction on how to perform the request correctly.
For all Regions that launched after March 20, 2019, if a request arrives at the wrong Amazon S3 location, Amazon S3 returns an HTTP 400 Bad Request error. Basically this means s3 region re-director won't work for region launched after march 20, 2019.
That's why when you are specifying the exact endpoint_url it works. I hope it helps. Please let me know if you have any more questions.
swetashre
added
guidance
Question that needs advice or information.
closing-soon
This issue will automatically close in 4 days unless further comments are made.
and removed
needs-triage
This issue or PR still needs to be triaged.
labels
Jan 27, 2021
Unable to upload data using presigned url in af-south-1 region.
Steps to reproduce
The response I get is IllegalLocationConstraintException. The af-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.
The same code works with buckets in other regions.
Boto3 version - 1.16.56
Interestingly, the same code works with boto3 version < 1.12
The text was updated successfully, but these errors were encountered: