{"action":"created","issue":{"url":"https://api.github.com/repos/CargoSense/ex_aws/issues/222","repository_url":"https://api.github.com/repos/CargoSense/ex_aws","labels_url":"https://api.github.com/repos/CargoSense/ex_aws/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/CargoSense/ex_aws/issues/222/comments","events_url":"https://api.github.com/repos/CargoSense/ex_aws/issues/222/events","html_url":"https://github.com/CargoSense/ex_aws/issues/222","id":178216623,"number":222,"title":"Create bucket with region \"us-east-1\" return error","user":{"login":"zentechtungtran","id":14228169,"avatar_url":"https://avatars.githubusercontent.com/u/14228169?v=3","gravatar_id":"","url":"https://api.github.com/users/zentechtungtran","html_url":"https://github.com/zentechtungtran","followers_url":"https://api.github.com/users/zentechtungtran/followers","following_url":"https://api.github.com/users/zentechtungtran/following{/other_user}","gists_url":"https://api.github.com/users/zentechtungtran/gists{/gist_id}","starred_url":"https://api.github.com/users/zentechtungtran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zentechtungtran/subscriptions","organizations_url":"https://api.github.com/users/zentechtungtran/orgs","repos_url":"https://api.github.com/users/zentechtungtran/repos","events_url":"https://api.github.com/users/zentechtungtran/events{/privacy}","received_events_url":"https://api.github.com/users/zentechtungtran/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-21T00:41:18Z","updated_at":"2016-09-26T14:16:12Z","closed_at":"2016-09-26T14:16:12Z","body":"when using ExAws.S3.put_bucket/3, with the region \"us-east-1\", the response is always \r\n`{: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>\"`\r\nI 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.\r\nI'm using {:ex_aws, \"~> 1.0.0-beta0\"}\r\nI attached 2 requests debug info here, they all return the same error.\r\n\r\n1/ `[debug] Request URL: \"https://s3.amazonaws.com/testabcd/\"`\r\n`[debug] Request BODY: \"<CreateBucketConfiguration xmlns=\\\"http://s3.amazonaws.com/doc/2006-03-01/\\\">\\n  <LocationConstraint></LocationConstraint>\\n</CreateBucketConfiguration>\\n\"`\r\n\r\n2/`[debug] Request URL: \"https://s3.amazonaws.com/testabcd/\"`\r\n`[debug] Request BODY: \"<CreateBucketConfiguration xmlns=\\\"http://s3.amazonaws.com/doc/2006-03-01/\\\">\\n  <LocationConstraint>us-east-1</LocationConstraint>\\n</CreateBucketConfiguration>\\n\"`"},"comment":{"url":"https://api.github.com/repos/CargoSense/ex_aws/issues/comments/249581939","html_url":"https://github.com/CargoSense/ex_aws/issues/222#issuecomment-249581939","issue_url":"https://api.github.com/repos/CargoSense/ex_aws/issues/222","id":249581939,"user":{"login":"benwilson512","id":247817,"avatar_url":"https://avatars.githubusercontent.com/u/247817?v=3","gravatar_id":"","url":"https://api.github.com/users/benwilson512","html_url":"https://github.com/benwilson512","followers_url":"https://api.github.com/users/benwilson512/followers","following_url":"https://api.github.com/users/benwilson512/following{/other_user}","gists_url":"https://api.github.com/users/benwilson512/gists{/gist_id}","starred_url":"https://api.github.com/users/benwilson512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwilson512/subscriptions","organizations_url":"https://api.github.com/users/benwilson512/orgs","repos_url":"https://api.github.com/users/benwilson512/repos","events_url":"https://api.github.com/users/benwilson512/events{/privacy}","received_events_url":"https://api.github.com/users/benwilson512/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T14:16:12Z","updated_at":"2016-09-26T14:16:12Z","body":"Fixed on master."}}
{"actor":{"display_login":"benwilson512"}}