{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/348","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/348/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/348/events","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/348","id":144746075,"number":348,"title":"Create bucket (mb) hangs/fails with location (-l) parameter","user":{"login":"thobrla","id":3239120,"avatar_url":"https://avatars.githubusercontent.com/u/3239120?v=3","gravatar_id":"","url":"https://api.github.com/users/thobrla","html_url":"https://github.com/thobrla","followers_url":"https://api.github.com/users/thobrla/followers","following_url":"https://api.github.com/users/thobrla/following{/other_user}","gists_url":"https://api.github.com/users/thobrla/gists{/gist_id}","starred_url":"https://api.github.com/users/thobrla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thobrla/subscriptions","organizations_url":"https://api.github.com/users/thobrla/orgs","repos_url":"https://api.github.com/users/thobrla/repos","events_url":"https://api.github.com/users/thobrla/events{/privacy}","received_events_url":"https://api.github.com/users/thobrla/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T23:16:44Z","updated_at":"2016-04-15T16:11:21Z","closed_at":"2016-04-15T16:11:21Z","body":"Starting with gsutil 4.18, using the location parameter in a `gsutil mb` call, for example:\r\n\r\n`gsutil mb -l US gs://example-bucket`\r\n\r\nresults in HTTP 503's returned by the service, causing the command to appear to hang and eventually fail after the maximum retry limit is reached.\r\n\r\nThis is due to a bug in the Google Cloud Storage JSON API which is likely to be fixed soon.  Until then, you can work around this issue by using the XML API:\r\n\r\n`gsutil -o 'GSUtil:prefer_api=xml' mb -l US gs://example-bucket`\r\n\r\nor using an older version of gsutil to create your bucket.\r\n\r\nWhen the service bug is fixed, this issue will be closed."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/comments/210524066","html_url":"https://github.com/GoogleCloudPlatform/gsutil/issues/348#issuecomment-210524066","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gsutil/issues/348","id":210524066,"user":{"login":"thobrla","id":3239120,"avatar_url":"https://avatars.githubusercontent.com/u/3239120?v=3","gravatar_id":"","url":"https://api.github.com/users/thobrla","html_url":"https://github.com/thobrla","followers_url":"https://api.github.com/users/thobrla/followers","following_url":"https://api.github.com/users/thobrla/following{/other_user}","gists_url":"https://api.github.com/users/thobrla/gists{/gist_id}","starred_url":"https://api.github.com/users/thobrla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thobrla/subscriptions","organizations_url":"https://api.github.com/users/thobrla/orgs","repos_url":"https://api.github.com/users/thobrla/repos","events_url":"https://api.github.com/users/thobrla/events{/privacy}","received_events_url":"https://api.github.com/users/thobrla/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T16:11:21Z","updated_at":"2016-04-15T16:11:21Z","body":"This issue is now fixed in the service, and you should once again be able to create buckets using the location parameter using gsutil 4.18 (or any recent version)."}}