Closed bachdavi closed 1 year ago
This is the response to the head
request:
┌ Info: HTTP.Messages.Response:
│ """
│ HTTP/1.1 301 Moved Permanently
│ x-amz-bucket-region: us-west-1
│ x-amz-request-id: PNPS5G4WAANC4VVM
│ x-amz-id-2: M7LtMXlTn2Ckkrze1BLk5fTUZgqEviTt6PXwQyHNjBasCmAw0OnYz8K55YPzzHl70PnyS76UqNw=
│ Content-Type: application/xml
│ Date: Tue, 10 Jan 2023 12:32:26 GMT
│ Server: AmazonS3
│
└ """
Thanks for the report @bachdavi! I indeed totally forgot that 301 redirects don't get thrown as StatusErrors (I actually think they probably should, but that's a potentially breaking change for HTTP.jl). Here's a PR that should account more properly for this case: https://github.com/JuliaServices/CloudStore.jl/pull/27.
Somehow the
301
does not throw an exception inHTTP.jl
even thoughstatus_exception
is true. Downstream code assumes that the response has theContent-Range
header set and fails to parse it.