{"action":"created","comment":{"url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/comments/39189671","id":39189671,"diff_hunk":"@@ -0,0 +1,43 @@\n+<?php\n+namespace Aws\\S3;\n+\n+use Aws\\Api\\Parser\\AbstractParser;\n+use Aws\\Api\\Parser\\Exception\\ParserException;\n+use Aws\\CommandInterface;\n+use Aws\\Exception\\AwsException;\n+use Psr\\Http\\Message\\ResponseInterface;\n+\n+class MalformedResponseParser extends AbstractParser","path":"src/S3/MalformedResponseParser.php","position":null,"original_position":10,"commit_id":"4c68fa44ba27650f58265ddb0724049b37b6c091","original_commit_id":"0494e0651a764fce2ee6d821c77da20fbf977495","user":{"login":"jeskew","id":705500,"avatar_url":"https://avatars.githubusercontent.com/u/705500?v=3","gravatar_id":"","url":"https://api.github.com/users/jeskew","html_url":"https://github.com/jeskew","followers_url":"https://api.github.com/users/jeskew/followers","following_url":"https://api.github.com/users/jeskew/following{/other_user}","gists_url":"https://api.github.com/users/jeskew/gists{/gist_id}","starred_url":"https://api.github.com/users/jeskew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeskew/subscriptions","organizations_url":"https://api.github.com/users/jeskew/orgs","repos_url":"https://api.github.com/users/jeskew/repos","events_url":"https://api.github.com/users/jeskew/events{/privacy}","received_events_url":"https://api.github.com/users/jeskew/received_events","type":"User","site_admin":false},"body":"@mtdowling Renamed to RetryableMalformedResponseParser.","created_at":"2015-09-10T17:42:29Z","updated_at":"2015-09-10T17:42:29Z","html_url":"https://github.com/aws/aws-sdk-php/pull/756#discussion_r39189671","pull_request_url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756","_links":{"self":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/comments/39189671"},"html":{"href":"https://github.com/aws/aws-sdk-php/pull/756#discussion_r39189671"},"pull_request":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756"}}},"pull_request":{"url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756","id":44274935,"html_url":"https://github.com/aws/aws-sdk-php/pull/756","diff_url":"https://github.com/aws/aws-sdk-php/pull/756.diff","patch_url":"https://github.com/aws/aws-sdk-php/pull/756.patch","issue_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/756","number":756,"state":"open","locked":false,"title":"Treat 200-coded error responses from S3 as retriable errors","user":{"login":"jeskew","id":705500,"avatar_url":"https://avatars.githubusercontent.com/u/705500?v=3","gravatar_id":"","url":"https://api.github.com/users/jeskew","html_url":"https://github.com/jeskew","followers_url":"https://api.github.com/users/jeskew/followers","following_url":"https://api.github.com/users/jeskew/following{/other_user}","gists_url":"https://api.github.com/users/jeskew/gists{/gist_id}","starred_url":"https://api.github.com/users/jeskew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeskew/subscriptions","organizations_url":"https://api.github.com/users/jeskew/orgs","repos_url":"https://api.github.com/users/jeskew/repos","events_url":"https://api.github.com/users/jeskew/events{/privacy}","received_events_url":"https://api.github.com/users/jeskew/received_events","type":"User","site_admin":false},"body":"S3 sometimes returns error with a status code of 200 (specifically their [copy operations](http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectCOPY.html)). This PR would treat those as errors and retry the requests.\r\n\r\n/cc @mtdowling ","created_at":"2015-09-05T02:22:26Z","updated_at":"2015-09-10T17:42:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eedcbf7227abcd0efd419b7b62733c3a6823580c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756/commits","review_comments_url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756/comments","review_comment_url":"https://api.github.com/repos/aws/aws-sdk-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/756/comments","statuses_url":"https://api.github.com/repos/aws/aws-sdk-php/statuses/4c68fa44ba27650f58265ddb0724049b37b6c091","head":{"label":"jeskew:fix/handle-strange-s3-errors","ref":"fix/handle-strange-s3-errors","sha":"4c68fa44ba27650f58265ddb0724049b37b6c091","user":{"login":"jeskew","id":705500,"avatar_url":"https://avatars.githubusercontent.com/u/705500?v=3","gravatar_id":"","url":"https://api.github.com/users/jeskew","html_url":"https://github.com/jeskew","followers_url":"https://api.github.com/users/jeskew/followers","following_url":"https://api.github.com/users/jeskew/following{/other_user}","gists_url":"https://api.github.com/users/jeskew/gists{/gist_id}","starred_url":"https://api.github.com/users/jeskew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeskew/subscriptions","organizations_url":"https://api.github.com/users/jeskew/orgs","repos_url":"https://api.github.com/users/jeskew/repos","events_url":"https://api.github.com/users/jeskew/events{/privacy}","received_events_url":"https://api.github.com/users/jeskew/received_events","type":"User","site_admin":false},"repo":{"id":37143307,"name":"aws-sdk-php","full_name":"jeskew/aws-sdk-php","owner":{"login":"jeskew","id":705500,"avatar_url":"https://avatars.githubusercontent.com/u/705500?v=3","gravatar_id":"","url":"https://api.github.com/users/jeskew","html_url":"https://github.com/jeskew","followers_url":"https://api.github.com/users/jeskew/followers","following_url":"https://api.github.com/users/jeskew/following{/other_user}","gists_url":"https://api.github.com/users/jeskew/gists{/gist_id}","starred_url":"https://api.github.com/users/jeskew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeskew/subscriptions","organizations_url":"https://api.github.com/users/jeskew/orgs","repos_url":"https://api.github.com/users/jeskew/repos","events_url":"https://api.github.com/users/jeskew/events{/privacy}","received_events_url":"https://api.github.com/users/jeskew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeskew/aws-sdk-php","description":"Official repository of the AWS SDK for PHP (@awsforphp)","fork":true,"url":"https://api.github.com/repos/jeskew/aws-sdk-php","forks_url":"https://api.github.com/repos/jeskew/aws-sdk-php/forks","keys_url":"https://api.github.com/repos/jeskew/aws-sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeskew/aws-sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeskew/aws-sdk-php/teams","hooks_url":"https://api.github.com/repos/jeskew/aws-sdk-php/hooks","issue_events_url":"https://api.github.com/repos/jeskew/aws-sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/jeskew/aws-sdk-php/events","assignees_url":"https://api.github.com/repos/jeskew/aws-sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/jeskew/aws-sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/jeskew/aws-sdk-php/tags","blobs_url":"https://api.github.com/repos/jeskew/aws-sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeskew/aws-sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeskew/aws-sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeskew/aws-sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeskew/aws-sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/jeskew/aws-sdk-php/languages","stargazers_url":"https://api.github.com/repos/jeskew/aws-sdk-php/stargazers","contributors_url":"https://api.github.com/repos/jeskew/aws-sdk-php/contributors","subscribers_url":"https://api.github.com/repos/jeskew/aws-sdk-php/subscribers","subscription_url":"https://api.github.com/repos/jeskew/aws-sdk-php/subscription","commits_url":"https://api.github.com/repos/jeskew/aws-sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeskew/aws-sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeskew/aws-sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeskew/aws-sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeskew/aws-sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/jeskew/aws-sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeskew/aws-sdk-php/merges","archive_url":"https://api.github.com/repos/jeskew/aws-sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeskew/aws-sdk-php/downloads","issues_url":"https://api.github.com/repos/jeskew/aws-sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/jeskew/aws-sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/jeskew/aws-sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/jeskew/aws-sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeskew/aws-sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/jeskew/aws-sdk-php/releases{/id}","created_at":"2015-06-09T16:13:26Z","updated_at":"2015-06-09T16:13:29Z","pushed_at":"2015-09-10T17:37:07Z","git_url":"git://github.com/jeskew/aws-sdk-php.git","ssh_url":"git@github.com:jeskew/aws-sdk-php.git","clone_url":"https://github.com/jeskew/aws-sdk-php.git","svn_url":"https://github.com/jeskew/aws-sdk-php","homepage":"http://aws.amazon.com/sdkforphp","size":15133,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"aws:master","ref":"master","sha":"3020047af048a331b7a356353b198d04e1670e1f","user":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"repo":{"id":6269013,"name":"aws-sdk-php","full_name":"aws/aws-sdk-php","owner":{"login":"aws","id":2232217,"avatar_url":"https://avatars.githubusercontent.com/u/2232217?v=3","gravatar_id":"","url":"https://api.github.com/users/aws","html_url":"https://github.com/aws","followers_url":"https://api.github.com/users/aws/followers","following_url":"https://api.github.com/users/aws/following{/other_user}","gists_url":"https://api.github.com/users/aws/gists{/gist_id}","starred_url":"https://api.github.com/users/aws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aws/subscriptions","organizations_url":"https://api.github.com/users/aws/orgs","repos_url":"https://api.github.com/users/aws/repos","events_url":"https://api.github.com/users/aws/events{/privacy}","received_events_url":"https://api.github.com/users/aws/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aws/aws-sdk-php","description":"Official repository of the AWS SDK for PHP (@awsforphp)","fork":false,"url":"https://api.github.com/repos/aws/aws-sdk-php","forks_url":"https://api.github.com/repos/aws/aws-sdk-php/forks","keys_url":"https://api.github.com/repos/aws/aws-sdk-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aws/aws-sdk-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aws/aws-sdk-php/teams","hooks_url":"https://api.github.com/repos/aws/aws-sdk-php/hooks","issue_events_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/events{/number}","events_url":"https://api.github.com/repos/aws/aws-sdk-php/events","assignees_url":"https://api.github.com/repos/aws/aws-sdk-php/assignees{/user}","branches_url":"https://api.github.com/repos/aws/aws-sdk-php/branches{/branch}","tags_url":"https://api.github.com/repos/aws/aws-sdk-php/tags","blobs_url":"https://api.github.com/repos/aws/aws-sdk-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aws/aws-sdk-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aws/aws-sdk-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/aws/aws-sdk-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aws/aws-sdk-php/statuses/{sha}","languages_url":"https://api.github.com/repos/aws/aws-sdk-php/languages","stargazers_url":"https://api.github.com/repos/aws/aws-sdk-php/stargazers","contributors_url":"https://api.github.com/repos/aws/aws-sdk-php/contributors","subscribers_url":"https://api.github.com/repos/aws/aws-sdk-php/subscribers","subscription_url":"https://api.github.com/repos/aws/aws-sdk-php/subscription","commits_url":"https://api.github.com/repos/aws/aws-sdk-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/aws/aws-sdk-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/aws/aws-sdk-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/aws/aws-sdk-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/aws/aws-sdk-php/contents/{+path}","compare_url":"https://api.github.com/repos/aws/aws-sdk-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aws/aws-sdk-php/merges","archive_url":"https://api.github.com/repos/aws/aws-sdk-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aws/aws-sdk-php/downloads","issues_url":"https://api.github.com/repos/aws/aws-sdk-php/issues{/number}","pulls_url":"https://api.github.com/repos/aws/aws-sdk-php/pulls{/number}","milestones_url":"https://api.github.com/repos/aws/aws-sdk-php/milestones{/number}","notifications_url":"https://api.github.com/repos/aws/aws-sdk-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aws/aws-sdk-php/labels{/name}","releases_url":"https://api.github.com/repos/aws/aws-sdk-php/releases{/id}","created_at":"2012-10-17T21:28:32Z","updated_at":"2015-09-08T06:03:50Z","pushed_at":"2015-09-10T17:37:07Z","git_url":"git://github.com/aws/aws-sdk-php.git","ssh_url":"git@github.com:aws/aws-sdk-php.git","clone_url":"https://github.com/aws/aws-sdk-php.git","svn_url":"https://github.com/aws/aws-sdk-php","homepage":"http://aws.amazon.com/sdkforphp","size":33596,"stargazers_count":1722,"watchers_count":1722,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":459,"mirror_url":null,"open_issues_count":11,"forks":459,"open_issues":11,"watchers":1722,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756"},"html":{"href":"https://github.com/aws/aws-sdk-php/pull/756"},"issue":{"href":"https://api.github.com/repos/aws/aws-sdk-php/issues/756"},"comments":{"href":"https://api.github.com/repos/aws/aws-sdk-php/issues/756/comments"},"review_comments":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756/comments"},"review_comment":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aws/aws-sdk-php/pulls/756/commits"},"statuses":{"href":"https://api.github.com/repos/aws/aws-sdk-php/statuses/4c68fa44ba27650f58265ddb0724049b37b6c091"}}}}