Amazon Web Services
Unofficial AWS community
S3 "GetBucketLocation" REST API Returning Incomplete ResultsJune 10, 2020 at 2:58am (Edited 2 years ago)
I am using this AWS provided C# code to test programmatic access to S3. I then referenced this AWS "GetBucketLocation" REST API documentation to make a GET request for my bucket:
My request was successful (HTTP 200/OK), but the response body contained the following useless information:
<?xml version="1.0" encoding="UTF-8"?><LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>
It doesn't matter where the bucket actually resides (us-east-1, us-east-2, us-west-2, etc)...it always gives this response. What am I doing wrong?