menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Amazon Web Services

Unofficial AWS community

Channels
Team

S3 "GetBucketLocation" REST API Returning Incomplete Results

June 10, 2020 at 2:58am

S3 "GetBucketLocation" REST API Returning Incomplete Results

June 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?
No messages yet