{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-java/issues/795","repository_url":"https://api.github.com/repos/aws/aws-sdk-java","labels_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/795/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-java/issues/795/events","html_url":"https://github.com/aws/aws-sdk-java/issues/795","id":168310170,"number":795,"title":"`AmazonS3Client.getObjectMetadata` fails for bucket in other region","user":{"login":"sebastiankirsch","id":1285210,"avatar_url":"https://avatars.githubusercontent.com/u/1285210?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastiankirsch","html_url":"https://github.com/sebastiankirsch","followers_url":"https://api.github.com/users/sebastiankirsch/followers","following_url":"https://api.github.com/users/sebastiankirsch/following{/other_user}","gists_url":"https://api.github.com/users/sebastiankirsch/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiankirsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiankirsch/subscriptions","organizations_url":"https://api.github.com/users/sebastiankirsch/orgs","repos_url":"https://api.github.com/users/sebastiankirsch/repos","events_url":"https://api.github.com/users/sebastiankirsch/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiankirsch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-java/labels/waiting-reply","name":"waiting-reply","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"manikandanrs","id":2710935,"avatar_url":"https://avatars.githubusercontent.com/u/2710935?v=3","gravatar_id":"","url":"https://api.github.com/users/manikandanrs","html_url":"https://github.com/manikandanrs","followers_url":"https://api.github.com/users/manikandanrs/followers","following_url":"https://api.github.com/users/manikandanrs/following{/other_user}","gists_url":"https://api.github.com/users/manikandanrs/gists{/gist_id}","starred_url":"https://api.github.com/users/manikandanrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikandanrs/subscriptions","organizations_url":"https://api.github.com/users/manikandanrs/orgs","repos_url":"https://api.github.com/users/manikandanrs/repos","events_url":"https://api.github.com/users/manikandanrs/events{/privacy}","received_events_url":"https://api.github.com/users/manikandanrs/received_events","type":"User","site_admin":false},"assignees":[{"login":"manikandanrs","id":2710935,"avatar_url":"https://avatars.githubusercontent.com/u/2710935?v=3","gravatar_id":"","url":"https://api.github.com/users/manikandanrs","html_url":"https://github.com/manikandanrs","followers_url":"https://api.github.com/users/manikandanrs/followers","following_url":"https://api.github.com/users/manikandanrs/following{/other_user}","gists_url":"https://api.github.com/users/manikandanrs/gists{/gist_id}","starred_url":"https://api.github.com/users/manikandanrs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manikandanrs/subscriptions","organizations_url":"https://api.github.com/users/manikandanrs/orgs","repos_url":"https://api.github.com/users/manikandanrs/repos","events_url":"https://api.github.com/users/manikandanrs/events{/privacy}","received_events_url":"https://api.github.com/users/manikandanrs/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-07-29T12:02:40Z","updated_at":"2016-08-24T23:49:52Z","closed_at":"2016-08-24T23:49:52Z","body":"We encounter this exception when fetching the metadata for an S3 bucket that resides in another region than our `AmazonS3Client` is set up with:\r\n\r\n    com.amazonaws.services.s3.model.AmazonS3Exception: Moved Permanently (Service: Amazon S3; Status Code: 301; Error Code: 301 Moved Permanently; Request ID: 1BEA69C8759690E3)\r\n        at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1401)\r\n        at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:945)\r\n        at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:723)\r\n        at com.amazonaws.http.AmazonHttpClient.doExecute(AmazonHttpClient.java:475)\r\n        at com.amazonaws.http.AmazonHttpClient.executeWithTimer(AmazonHttpClient.java:437)\r\n        at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:386)\r\n        at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3996)\r\n        at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1161)\r\n        at com.amazonaws.services.s3.AmazonS3Client.getObjectMetadata(AmazonS3Client.java:1136)\r\n\r\nIt is very inconvenient to set up an instance of `AmazonS3Client` for each and every region we deal with."}}
{"actor":{"display_login":"varunnvs92"}}