AWS S3 REST API: Error in response of GET bucket location call
<p>We are performing <a href="http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETlocation.html" rel="nofollow">GET bucket location call</a> with V4 signature generated using "us-east-1" region in the following URL format:</p>

<p><a href="https://s3.amazonaws.com/my-bucket-name?location" rel="nofollow">https://s3.amazonaws.com/my-bucket-name?location</a></p>

<p>Sometimes, it returns the error in following format:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Error&gt;
    &lt;Code&gt;AuthorizationHeaderMalformed&lt;/Code&gt;
    &lt;Message&gt;The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'us-west-1'&lt;/Message&gt;
    &lt;Region&gt;us-west-1&lt;/Region&gt;
    &lt;RequestId&gt;A1A1&lt;/RequestId&gt;
    &lt;HostId&gt;B1B1&lt;/HostId&gt;
&lt;/Error&gt;
</code></pre>

<p><strong>My questions:</strong></p>

<ol>
<li>Is the region 'us-west-1' mentioned in "Region" tag the correct location of the bucket? </li>
<li>Or is it asking us to make GET bucket location call again with new V4 signature generated using this region (us-west-1 in current example)?</li>
<li>Can we make multiple GET bucket regions calls simultaneously for various buckets in various regions?</li>
</ol>

<p><strong>Edit (on Aug 25, 2016 IST):</strong> 
Added Que #3 above.</p>

<p><strong>Edit (on Sep 08, 2016 IST):</strong> 
It was a buggy code for multithreading. No issue from S3.
The issue is resolved.
Let me know how to close the question.</p>