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
when using ExAws.S3.put_bucket/3, with the region "us-east-1", the response is always {:error, {:http_error, 400, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InvalidLocationConstraint</Code><Message>The specified location-constraint is not valid</Message><LocationConstraint></LocationConstraint></Error>"
I read that with "us-east-1" region, the "LocationConstraint" element is not necessary, then may be in ex_aws/s3.ex file line 269, default case should be handled.
I'm using {:ex_aws, "~> 1.0.0-beta0"}
I attached 2 requests debug info here, they all return the same error.
Yeah basically you want to do put_bucket("bucket_name", ""). However, I should probably handle making "us-east-1" produce an empty string location constraint.
This is a great case of one of the things that makes me rant about how badly designed the S3 API is.
when using ExAws.S3.put_bucket/3, with the region "us-east-1", the response is always
{:error, {:http_error, 400, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>InvalidLocationConstraint</Code><Message>The specified location-constraint is not valid</Message><LocationConstraint></LocationConstraint></Error>"
I read that with "us-east-1" region, the "LocationConstraint" element is not necessary, then may be in ex_aws/s3.ex file line 269, default case should be handled.
I'm using {:ex_aws, "~> 1.0.0-beta0"}
I attached 2 requests debug info here, they all return the same error.
1/
[debug] Request URL: "https://s3.amazonaws.com/testabcd/"
[debug] Request BODY: "<CreateBucketConfiguration xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\">\n <LocationConstraint></LocationConstraint>\n</CreateBucketConfiguration>\n"
2/
[debug] Request URL: "https://s3.amazonaws.com/testabcd/"
[debug] Request BODY: "<CreateBucketConfiguration xmlns=\"http://s3.amazonaws.com/doc/2006-03-01/\">\n <LocationConstraint>us-east-1</LocationConstraint>\n</CreateBucketConfiguration>\n"
The text was updated successfully, but these errors were encountered: