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
Specified region is ignored and the us endpoint is used, causing a redirect which ExAws returns as an error and warns about setting region, but setting region has no effect.
# Copying file within the same bucket.
config = ExAws.Config.new(:s3) |> Map.put(:region, "eu-west-2")
ExAws.request(ExAws.S3.put_object_copy(bucket(), destination_path, bucket(), source_path, config))
Produces:
# 22:13:19.849 [warn] ExAws: Received redirect, did you specify the correct region?
# {:error, {:http_error, 301, "redirected"}}
Expected behavior
The operation succeeds without redirecting because ExAws has used the correct endpoint.
e.g. Operations need to use https://my-bucket.s3.amazonaws.com and not https://s3.amazonaws.com/my-bucket
The text was updated successfully, but these errors were encountered:
Environment
Elixir 1.10.0 (compiled with Erlang/OTP 22)
mix deps | grep hackney
Current behaviour
Specified region is ignored and the us endpoint is used, causing a redirect which ExAws returns as an error and warns about setting region, but setting region has no effect.
Produces:
Expected behavior
The operation succeeds without redirecting because ExAws has used the correct endpoint.
e.g. Operations need to use
https://my-bucket.s3.amazonaws.com
and nothttps://s3.amazonaws.com/my-bucket
The text was updated successfully, but these errors were encountered: