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
HTTP/1.1 301 Moved Permanently
x-amz-request-id: [...]
x-amz-id-2: [...]
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Wed, 30 Apr 2014 10:35:50 GMT
Connection: close
Server: AmazonS3
1d3
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>PermanentRedirect</Code><Message>The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.</Message><RequestId>[...]</RequestId><Bucket>my-bucket</Bucket><HostId>[...]</HostId><Endpoint>my-bucket.s3.amazonaws.com</Endpoint></Error>
0
I noticed raise_for_status() is called, but I suppose 301 is not considered an error, thus no exception is raised.
I know I should provide the endpoint to tinys3 but I believe the code should check explicitly for status >= 300 and raise accordingly in order to avoid silently failing requests.
The bucket resides in the
eu-west-1
region. The code above completes successfully, but here's the HTTP communication:I noticed
raise_for_status()
is called, but I suppose301
is not considered an error, thus no exception is raised.I know I should provide the endpoint to
tinys3
but I believe the code should check explicitly for status >= 300 and raise accordingly in order to avoid silently failing requests.@shlomiatar, what do you think?
The text was updated successfully, but these errors were encountered: