{"action":"created","issue":{"url":"https://api.github.com/repos/fog/fog/issues/3275","labels_url":"https://api.github.com/repos/fog/fog/issues/3275/labels{/name}","comments_url":"https://api.github.com/repos/fog/fog/issues/3275/comments","events_url":"https://api.github.com/repos/fog/fog/issues/3275/events","html_url":"https://github.com/fog/fog/issues/3275","id":49286474,"number":3275,"title":"Fog broken for Amazon S3 in ap-northeast-1 region after 1.25.0 release.","user":{"login":"johnnyshields","id":27655,"avatar_url":"https://avatars.githubusercontent.com/u/27655?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyshields","html_url":"https://github.com/johnnyshields","followers_url":"https://api.github.com/users/johnnyshields/followers","following_url":"https://api.github.com/users/johnnyshields/following{/other_user}","gists_url":"https://api.github.com/users/johnnyshields/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyshields/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyshields/subscriptions","organizations_url":"https://api.github.com/users/johnnyshields/orgs","repos_url":"https://api.github.com/users/johnnyshields/repos","events_url":"https://api.github.com/users/johnnyshields/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyshields/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2014-11-18T20:02:55Z","updated_at":"2015-01-28T18:16:57Z","closed_at":"2015-01-12T16:01:13Z","body":"Fog is broken for me after upgrading to the 1.25.0 release when uploading to Amazon S3 in ap-northeast-1 region. Rolling back to 1.23.0 fixes the issue. Here's the error:\r\n\r\n```\r\nExcon::Errors::BadRequest: Expected(200) <=> Actual(400 Bad Request)\r\nexcon.error.response\r\n  :body          => \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<Error><Code>AuthorizationHeaderMalformed</Code><Message>The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'ap-northeast-1'</Message><Region>ap-northeast-1</Region><RequestId>XXX</RequestId><HostId>XXXX</HostId></Error>\"\r\n  :headers       => {\r\n    \"Connection\"       => \"close\"\r\n    \"Content-Type\"     => \"application/xml\"\r\n    \"Date\"             => \"Tue, 18 Nov 2014 19:43:20 GMT\"\r\n    \"Server\"           => \"AmazonS3\"\r\n    \"x-amz-id-2\"       => \"XXXX\"\r\n    \"x-amz-request-id\" => \"XXXX\"\r\n  }\r\n  :local_address => \"X.X.X.X\"\r\n  :local_port    => XXXXX\r\n  :reason_phrase => \"Bad Request\"\r\n  :remote_ip     => \"X.X.X.X\"\r\n  :status        => 400\r\n.../shared/bundle/ruby/2.1.0/gems/excon-0.41.0/lib/excon/middlewares/expects.rb:6:in `response_call'\r\n.../shared/bundle/ruby/2.1.0/gems/excon-0.41.0/lib/excon/middlewares/response_parser.rb:8:in `response_call'\r\n.../shared/bundle/ruby/2.1.0/gems/excon-0.41.0/lib/excon/connection.rb:365:in `response'\r\n.../shared/bundle/ruby/2.1.0/gems/excon-0.41.0/lib/excon/connection.rb:235:in `request'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-xml-0.1.1/lib/fog/xml/sax_parser_connection.rb:37:in `request'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-xml-0.1.1/lib/fog/xml/connection.rb:7:in `request'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-1.25.0/lib/fog/aws/storage.rb:521:in `_request'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-1.25.0/lib/fog/aws/storage.rb:516:in `request'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-1.25.0/lib/fog/aws/requests/storage/get_bucket.rb:43:in `get_bucket'\r\n.../shared/bundle/ruby/2.1.0/gems/fog-1.25.0/lib/fog/aws/models/storage/directories.rb:22:in `get'\r\n```"},"comment":{"url":"https://api.github.com/repos/fog/fog/issues/comments/71885875","html_url":"https://github.com/fog/fog/issues/3275#issuecomment-71885875","issue_url":"https://api.github.com/repos/fog/fog/issues/3275","id":71885875,"user":{"login":"Nik736","id":1334622,"avatar_url":"https://avatars.githubusercontent.com/u/1334622?v=3","gravatar_id":"","url":"https://api.github.com/users/Nik736","html_url":"https://github.com/Nik736","followers_url":"https://api.github.com/users/Nik736/followers","following_url":"https://api.github.com/users/Nik736/following{/other_user}","gists_url":"https://api.github.com/users/Nik736/gists{/gist_id}","starred_url":"https://api.github.com/users/Nik736/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nik736/subscriptions","organizations_url":"https://api.github.com/users/Nik736/orgs","repos_url":"https://api.github.com/users/Nik736/repos","events_url":"https://api.github.com/users/Nik736/events{/privacy}","received_events_url":"https://api.github.com/users/Nik736/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T18:16:57Z","updated_at":"2015-01-28T18:16:57Z","body":"Error is still there for me. The problem is only there if I use Frankfurt (eu-central-1), tried the default location as well and with that it works perfectly fine.\r\n\r\ns3cmd has the same problem, I think Amazon changed some things and now new locations are broken."}}