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
We should be able to get normal response based on bucket contents, provided user has permissions.
Current Behavior
Getting the following error:
ClientError: An error occurred (IllegalLocationConstraintException) when calling the ListObjectsV2 operation: The ap-south-2 location constraint is incompatible for the region specific endpoint this request was sent to.
Reproduction Steps
Create a bucket in ap-south-2, Hyderabad region. And try to access it programmatically with boto3
Hi @eldos-dl thanks for reaching out. I commented here on the other issue you just opened: aws/aws-cli#8326 (comment). As mentioned there, you'll need to set the region name to ap-south-2 in order to correctly route the request. For example:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
@tim-finnigan So for opt-in regions like ap-south-2, it is mandatory to mention region_name while creating the client, unlike buckets in other regions where it is automatically inferred?
Describe the bug
The following code is giving error for buckets in ap-south-2 region
Expected Behavior
We should be able to get normal response based on bucket contents, provided user has permissions.
Current Behavior
Getting the following error:
ClientError: An error occurred (IllegalLocationConstraintException) when calling the ListObjectsV2 operation: The ap-south-2 location constraint is incompatible for the region specific endpoint this request was sent to.
Reproduction Steps
Create a bucket in ap-south-2, Hyderabad region. And try to access it programmatically with boto3
Possible Solution
Add ap-south-2 to the validation
Additional Information/Context
No response
SDK version used
boto3==1.28.85
Environment details (OS name and version, etc.)
Linux/6.2.0-36-generic exe/x86_64.ubuntu.22 prompt/off
The text was updated successfully, but these errors were encountered: