{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto/issues/2741","labels_url":"https://api.github.com/repos/boto/boto/issues/2741/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto/issues/2741/comments","events_url":"https://api.github.com/repos/boto/boto/issues/2741/events","html_url":"https://github.com/boto/boto/issues/2741","id":48103597,"number":2741,"title":"S3 bucket lookup / get_bucket broken for eu-central-1 (Frankfurt)","user":{"login":"wibou7","id":4405387,"avatar_url":"https://avatars.githubusercontent.com/u/4405387?v=3","gravatar_id":"","url":"https://api.github.com/users/wibou7","html_url":"https://github.com/wibou7","followers_url":"https://api.github.com/users/wibou7/followers","following_url":"https://api.github.com/users/wibou7/following{/other_user}","gists_url":"https://api.github.com/users/wibou7/gists{/gist_id}","starred_url":"https://api.github.com/users/wibou7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wibou7/subscriptions","organizations_url":"https://api.github.com/users/wibou7/orgs","repos_url":"https://api.github.com/users/wibou7/repos","events_url":"https://api.github.com/users/wibou7/events{/privacy}","received_events_url":"https://api.github.com/users/wibou7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-11-07T16:48:41Z","updated_at":"2016-01-12T13:01:15Z","closed_at":null,"body":"This bug might be caused by a bug in AWS but just in case it is not (or that their is a work around).\r\nTest setup:\r\nboto 2.34.0\r\npython 2.6.6\r\nCentOS 6.5\r\n\r\n### Step to reproduce ###\r\n1 - Create 2 buckets on S3. I've done this using the web interface, but it shouldn't matter.\r\nOne must be in Frankfurt (eu-central-1) (here: \"56885685-test-bucket-in-frankfurt\")\r\nOne in another region, e.g. US Standard (us-east-1) (here: \"56885685-test-bucket-in-north-virginia\")\r\n(you can pick any other region here, I tested with Ireland as well it the same behavior would occur)\r\n\r\n2- List all buckets. They would both show:\r\n```python\r\nfrom boto.s3.connection import S3Connection\r\nconn = S3Connection(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY) # Replace with your creds\r\nallBuckets = conn.get_all_buckets()\r\nfor bucket in allBuckets:\r\n   print(str(bucket.name))\r\n```\r\nResult:\r\n56885685-test-bucket-in-frankfurt\r\n56885685-test-bucket-in-north-virginia\r\n\r\n3- Try to get each bucket individually:\r\n```python\r\nfrom boto.s3.connection import S3Connection\r\nconn = S3Connection(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY) # Replace with your creds\r\nbucketName = \"56885685-test-bucket-in-north-virginia\"\r\nbucketName2 = \"56885685-test-bucket-in-frankfurt\"\r\nbucket1 = conn.lookup(bucketName)\r\nprint(\"North Virginia Bucket: \" + str(bucket1))\r\nbucket2 = conn.lookup(bucketName2)\r\nprint(\"Frankfurt Bucket: \" + str(bucket2))\r\n```\r\nResult:\r\n`North Virginia Bucket: <Bucket: 56885685-test-bucket-in-north-virginia>`\r\n`Frankfurt Bucket: None`\r\n\r\n\r\n### Investigation ###\r\nUpon ivestigation, I believe this might actually be caused by a bug on AWS side, but I still have a doubt.\r\nIn the file: \"boto/s3/connection.py\" at line 522, I added:\r\n`print(\"* STATUS: \" + str(response.status))`\r\n\r\nNow executing the code above give me\r\nNorth Virginia:\r\n`* STATUS: 200`\r\nFrankfurt:\r\n`* STATUS: 400`\r\n\r\nThuis might (???) be caused by internal stuff in boto, but it is more likely to be the direct HTTP answer returned by the rest call to AWS... so their own support for Frankfurt may be broken. "},"comment":{"url":"https://api.github.com/repos/boto/boto/issues/comments/170904571","html_url":"https://github.com/boto/boto/issues/2741#issuecomment-170904571","issue_url":"https://api.github.com/repos/boto/boto/issues/2741","id":170904571,"user":{"login":"asteinlein","id":904794,"avatar_url":"https://avatars.githubusercontent.com/u/904794?v=3","gravatar_id":"","url":"https://api.github.com/users/asteinlein","html_url":"https://github.com/asteinlein","followers_url":"https://api.github.com/users/asteinlein/followers","following_url":"https://api.github.com/users/asteinlein/following{/other_user}","gists_url":"https://api.github.com/users/asteinlein/gists{/gist_id}","starred_url":"https://api.github.com/users/asteinlein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteinlein/subscriptions","organizations_url":"https://api.github.com/users/asteinlein/orgs","repos_url":"https://api.github.com/users/asteinlein/repos","events_url":"https://api.github.com/users/asteinlein/events{/privacy}","received_events_url":"https://api.github.com/users/asteinlein/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T13:01:15Z","updated_at":"2016-01-12T13:01:15Z","body":"Just hit by this as well – we're unable to use our Frankfurt bucket. Please try to resolve this in a release soon."}}