{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/socorro/issues/3450","repository_url":"https://api.github.com/repos/mozilla/socorro","labels_url":"https://api.github.com/repos/mozilla/socorro/issues/3450/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/socorro/issues/3450/comments","events_url":"https://api.github.com/repos/mozilla/socorro/issues/3450/events","html_url":"https://github.com/mozilla/socorro/pull/3450","id":173833843,"number":3450,"title":"fixes bug 1296008 - Create bucket with region","user":{"login":"peterbe","id":26739,"avatar_url":"https://avatars.githubusercontent.com/u/26739?v=3","gravatar_id":"","url":"https://api.github.com/users/peterbe","html_url":"https://github.com/peterbe","followers_url":"https://api.github.com/users/peterbe/followers","following_url":"https://api.github.com/users/peterbe/following{/other_user}","gists_url":"https://api.github.com/users/peterbe/gists{/gist_id}","starred_url":"https://api.github.com/users/peterbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterbe/subscriptions","organizations_url":"https://api.github.com/users/peterbe/orgs","repos_url":"https://api.github.com/users/peterbe/repos","events_url":"https://api.github.com/users/peterbe/events{/privacy}","received_events_url":"https://api.github.com/users/peterbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"adngdb","id":328790,"avatar_url":"https://avatars.githubusercontent.com/u/328790?v=3","gravatar_id":"","url":"https://api.github.com/users/adngdb","html_url":"https://github.com/adngdb","followers_url":"https://api.github.com/users/adngdb/followers","following_url":"https://api.github.com/users/adngdb/following{/other_user}","gists_url":"https://api.github.com/users/adngdb/gists{/gist_id}","starred_url":"https://api.github.com/users/adngdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adngdb/subscriptions","organizations_url":"https://api.github.com/users/adngdb/orgs","repos_url":"https://api.github.com/users/adngdb/repos","events_url":"https://api.github.com/users/adngdb/events{/privacy}","received_events_url":"https://api.github.com/users/adngdb/received_events","type":"User","site_admin":false},"assignees":[{"login":"adngdb","id":328790,"avatar_url":"https://avatars.githubusercontent.com/u/328790?v=3","gravatar_id":"","url":"https://api.github.com/users/adngdb","html_url":"https://github.com/adngdb","followers_url":"https://api.github.com/users/adngdb/followers","following_url":"https://api.github.com/users/adngdb/following{/other_user}","gists_url":"https://api.github.com/users/adngdb/gists{/gist_id}","starred_url":"https://api.github.com/users/adngdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adngdb/subscriptions","organizations_url":"https://api.github.com/users/adngdb/orgs","repos_url":"https://api.github.com/users/adngdb/repos","events_url":"https://api.github.com/users/adngdb/events{/privacy}","received_events_url":"https://api.github.com/users/adngdb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-08-29T18:01:35Z","updated_at":"2016-09-01T14:54:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/socorro/pulls/3450","html_url":"https://github.com/mozilla/socorro/pull/3450","diff_url":"https://github.com/mozilla/socorro/pull/3450.diff","patch_url":"https://github.com/mozilla/socorro/pull/3450.patch"},"body":"Here's why I'm confident this works (and is necessary!):\r\n\r\n```\r\n>>> conn = boto.s3.connect_to_region('us-west-2', aws_access_key_id='AKI....)  # personal credentials\r\n>>> bucket = conn.create_bucket('peterbe-test-bucket-delete-me')\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/Users/peterbe/virtualenvs/socorro/lib/python2.7/site-packages/boto/s3/connection.py\", line 590, in create_bucket\r\n    response.status, response.reason, body)\r\nboto.exception.S3ResponseError: S3ResponseError: 400 Bad Request\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Error><Code>IllegalLocationConstraintException</Code><Message>The unspecified location constraint is incompatible for the region specific endpoint this request was sent to.</Message><RequestId>18E674025CAD633F</RequestId><HostId>m9B9tQ13Sez6OaWrbwvh28cBenVD/YfvjC+bq1Xp6iVyLXagDKmTcIBXot6laR2avWrEs1wAX9w=</HostId></Error>\r\n>>> bucket = conn.create_bucket('peterbe-test-bucket-delete-me', location='us-west-2')\r\n```\r\nthe last line worked. And I logged in and check that the bucket did get created. \r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/socorro/issues/comments/244104873","html_url":"https://github.com/mozilla/socorro/pull/3450#issuecomment-244104873","issue_url":"https://api.github.com/repos/mozilla/socorro/issues/3450","id":244104873,"user":{"login":"adngdb","id":328790,"avatar_url":"https://avatars.githubusercontent.com/u/328790?v=3","gravatar_id":"","url":"https://api.github.com/users/adngdb","html_url":"https://github.com/adngdb","followers_url":"https://api.github.com/users/adngdb/followers","following_url":"https://api.github.com/users/adngdb/following{/other_user}","gists_url":"https://api.github.com/users/adngdb/gists{/gist_id}","starred_url":"https://api.github.com/users/adngdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adngdb/subscriptions","organizations_url":"https://api.github.com/users/adngdb/orgs","repos_url":"https://api.github.com/users/adngdb/repos","events_url":"https://api.github.com/users/adngdb/events{/privacy}","received_events_url":"https://api.github.com/users/adngdb/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T14:54:45Z","updated_at":"2016-09-01T14:54:45Z","body":"The code looks sane, but I have no idea what it does nor why it is needed. Maybe someone else would be a better reviewer? Or maybe my saying the code looks sane is enough for you. You choose. :)"}}
{"actor":{"display_login":"adngdb"}}