{"action":"opened","number":77,"pull_request":{"url":"https://api.github.com/repos/nickbutcher/plaid/pulls/77","id":64086370,"html_url":"https://github.com/nickbutcher/plaid/pull/77","diff_url":"https://github.com/nickbutcher/plaid/pull/77.diff","patch_url":"https://github.com/nickbutcher/plaid/pull/77.patch","issue_url":"https://api.github.com/repos/nickbutcher/plaid/issues/77","number":77,"state":"open","locked":false,"title":"Check response status before reading body","user":{"login":"mattprecious","id":333672,"avatar_url":"https://avatars.githubusercontent.com/u/333672?v=3","gravatar_id":"","url":"https://api.github.com/users/mattprecious","html_url":"https://github.com/mattprecious","followers_url":"https://api.github.com/users/mattprecious/followers","following_url":"https://api.github.com/users/mattprecious/following{/other_user}","gists_url":"https://api.github.com/users/mattprecious/gists{/gist_id}","starred_url":"https://api.github.com/users/mattprecious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattprecious/subscriptions","organizations_url":"https://api.github.com/users/mattprecious/orgs","repos_url":"https://api.github.com/users/mattprecious/repos","events_url":"https://api.github.com/users/mattprecious/events{/privacy}","received_events_url":"https://api.github.com/users/mattprecious/received_events","type":"User","site_admin":false},"body":"I only fixed the one spot that was crashing for me when testing my other changes, so this is probably not a sufficient PR to merge. But opening it anyway to raise the issue and propose a simple solution.","created_at":"2016-03-24T19:30:31Z","updated_at":"2016-03-24T19:30:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nickbutcher/plaid/pulls/77/commits","review_comments_url":"https://api.github.com/repos/nickbutcher/plaid/pulls/77/comments","review_comment_url":"https://api.github.com/repos/nickbutcher/plaid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nickbutcher/plaid/issues/77/comments","statuses_url":"https://api.github.com/repos/nickbutcher/plaid/statuses/6048bf0bc48f2e65935e64477787fb907493da67","head":{"label":"mattprecious:mattp/unsuccessful-response","ref":"mattp/unsuccessful-response","sha":"6048bf0bc48f2e65935e64477787fb907493da67","user":{"login":"mattprecious","id":333672,"avatar_url":"https://avatars.githubusercontent.com/u/333672?v=3","gravatar_id":"","url":"https://api.github.com/users/mattprecious","html_url":"https://github.com/mattprecious","followers_url":"https://api.github.com/users/mattprecious/followers","following_url":"https://api.github.com/users/mattprecious/following{/other_user}","gists_url":"https://api.github.com/users/mattprecious/gists{/gist_id}","starred_url":"https://api.github.com/users/mattprecious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattprecious/subscriptions","organizations_url":"https://api.github.com/users/mattprecious/orgs","repos_url":"https://api.github.com/users/mattprecious/repos","events_url":"https://api.github.com/users/mattprecious/events{/privacy}","received_events_url":"https://api.github.com/users/mattprecious/received_events","type":"User","site_admin":false},"repo":{"id":54665431,"name":"plaid","full_name":"mattprecious/plaid","owner":{"login":"mattprecious","id":333672,"avatar_url":"https://avatars.githubusercontent.com/u/333672?v=3","gravatar_id":"","url":"https://api.github.com/users/mattprecious","html_url":"https://github.com/mattprecious","followers_url":"https://api.github.com/users/mattprecious/followers","following_url":"https://api.github.com/users/mattprecious/following{/other_user}","gists_url":"https://api.github.com/users/mattprecious/gists{/gist_id}","starred_url":"https://api.github.com/users/mattprecious/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattprecious/subscriptions","organizations_url":"https://api.github.com/users/mattprecious/orgs","repos_url":"https://api.github.com/users/mattprecious/repos","events_url":"https://api.github.com/users/mattprecious/events{/privacy}","received_events_url":"https://api.github.com/users/mattprecious/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattprecious/plaid","description":"","fork":true,"url":"https://api.github.com/repos/mattprecious/plaid","forks_url":"https://api.github.com/repos/mattprecious/plaid/forks","keys_url":"https://api.github.com/repos/mattprecious/plaid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattprecious/plaid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattprecious/plaid/teams","hooks_url":"https://api.github.com/repos/mattprecious/plaid/hooks","issue_events_url":"https://api.github.com/repos/mattprecious/plaid/issues/events{/number}","events_url":"https://api.github.com/repos/mattprecious/plaid/events","assignees_url":"https://api.github.com/repos/mattprecious/plaid/assignees{/user}","branches_url":"https://api.github.com/repos/mattprecious/plaid/branches{/branch}","tags_url":"https://api.github.com/repos/mattprecious/plaid/tags","blobs_url":"https://api.github.com/repos/mattprecious/plaid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattprecious/plaid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattprecious/plaid/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattprecious/plaid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattprecious/plaid/statuses/{sha}","languages_url":"https://api.github.com/repos/mattprecious/plaid/languages","stargazers_url":"https://api.github.com/repos/mattprecious/plaid/stargazers","contributors_url":"https://api.github.com/repos/mattprecious/plaid/contributors","subscribers_url":"https://api.github.com/repos/mattprecious/plaid/subscribers","subscription_url":"https://api.github.com/repos/mattprecious/plaid/subscription","commits_url":"https://api.github.com/repos/mattprecious/plaid/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattprecious/plaid/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattprecious/plaid/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattprecious/plaid/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattprecious/plaid/contents/{+path}","compare_url":"https://api.github.com/repos/mattprecious/plaid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattprecious/plaid/merges","archive_url":"https://api.github.com/repos/mattprecious/plaid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattprecious/plaid/downloads","issues_url":"https://api.github.com/repos/mattprecious/plaid/issues{/number}","pulls_url":"https://api.github.com/repos/mattprecious/plaid/pulls{/number}","milestones_url":"https://api.github.com/repos/mattprecious/plaid/milestones{/number}","notifications_url":"https://api.github.com/repos/mattprecious/plaid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattprecious/plaid/labels{/name}","releases_url":"https://api.github.com/repos/mattprecious/plaid/releases{/id}","deployments_url":"https://api.github.com/repos/mattprecious/plaid/deployments","created_at":"2016-03-24T18:36:46Z","updated_at":"2016-03-24T18:36:48Z","pushed_at":"2016-03-24T19:27:24Z","git_url":"git://github.com/mattprecious/plaid.git","ssh_url":"git@github.com:mattprecious/plaid.git","clone_url":"https://github.com/mattprecious/plaid.git","svn_url":"https://github.com/mattprecious/plaid","homepage":null,"size":25956,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"nickbutcher:master","ref":"master","sha":"00b886e1e4a31e7bb50ce614f81699ab2566c97e","user":{"login":"nickbutcher","id":352556,"avatar_url":"https://avatars.githubusercontent.com/u/352556?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbutcher","html_url":"https://github.com/nickbutcher","followers_url":"https://api.github.com/users/nickbutcher/followers","following_url":"https://api.github.com/users/nickbutcher/following{/other_user}","gists_url":"https://api.github.com/users/nickbutcher/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbutcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbutcher/subscriptions","organizations_url":"https://api.github.com/users/nickbutcher/orgs","repos_url":"https://api.github.com/users/nickbutcher/repos","events_url":"https://api.github.com/users/nickbutcher/events{/privacy}","received_events_url":"https://api.github.com/users/nickbutcher/received_events","type":"User","site_admin":false},"repo":{"id":45261969,"name":"plaid","full_name":"nickbutcher/plaid","owner":{"login":"nickbutcher","id":352556,"avatar_url":"https://avatars.githubusercontent.com/u/352556?v=3","gravatar_id":"","url":"https://api.github.com/users/nickbutcher","html_url":"https://github.com/nickbutcher","followers_url":"https://api.github.com/users/nickbutcher/followers","following_url":"https://api.github.com/users/nickbutcher/following{/other_user}","gists_url":"https://api.github.com/users/nickbutcher/gists{/gist_id}","starred_url":"https://api.github.com/users/nickbutcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickbutcher/subscriptions","organizations_url":"https://api.github.com/users/nickbutcher/orgs","repos_url":"https://api.github.com/users/nickbutcher/repos","events_url":"https://api.github.com/users/nickbutcher/events{/privacy}","received_events_url":"https://api.github.com/users/nickbutcher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickbutcher/plaid","description":"","fork":false,"url":"https://api.github.com/repos/nickbutcher/plaid","forks_url":"https://api.github.com/repos/nickbutcher/plaid/forks","keys_url":"https://api.github.com/repos/nickbutcher/plaid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickbutcher/plaid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickbutcher/plaid/teams","hooks_url":"https://api.github.com/repos/nickbutcher/plaid/hooks","issue_events_url":"https://api.github.com/repos/nickbutcher/plaid/issues/events{/number}","events_url":"https://api.github.com/repos/nickbutcher/plaid/events","assignees_url":"https://api.github.com/repos/nickbutcher/plaid/assignees{/user}","branches_url":"https://api.github.com/repos/nickbutcher/plaid/branches{/branch}","tags_url":"https://api.github.com/repos/nickbutcher/plaid/tags","blobs_url":"https://api.github.com/repos/nickbutcher/plaid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickbutcher/plaid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickbutcher/plaid/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickbutcher/plaid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickbutcher/plaid/statuses/{sha}","languages_url":"https://api.github.com/repos/nickbutcher/plaid/languages","stargazers_url":"https://api.github.com/repos/nickbutcher/plaid/stargazers","contributors_url":"https://api.github.com/repos/nickbutcher/plaid/contributors","subscribers_url":"https://api.github.com/repos/nickbutcher/plaid/subscribers","subscription_url":"https://api.github.com/repos/nickbutcher/plaid/subscription","commits_url":"https://api.github.com/repos/nickbutcher/plaid/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickbutcher/plaid/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickbutcher/plaid/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickbutcher/plaid/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickbutcher/plaid/contents/{+path}","compare_url":"https://api.github.com/repos/nickbutcher/plaid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickbutcher/plaid/merges","archive_url":"https://api.github.com/repos/nickbutcher/plaid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickbutcher/plaid/downloads","issues_url":"https://api.github.com/repos/nickbutcher/plaid/issues{/number}","pulls_url":"https://api.github.com/repos/nickbutcher/plaid/pulls{/number}","milestones_url":"https://api.github.com/repos/nickbutcher/plaid/milestones{/number}","notifications_url":"https://api.github.com/repos/nickbutcher/plaid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickbutcher/plaid/labels{/name}","releases_url":"https://api.github.com/repos/nickbutcher/plaid/releases{/id}","deployments_url":"https://api.github.com/repos/nickbutcher/plaid/deployments","created_at":"2015-10-30T16:10:56Z","updated_at":"2016-03-24T16:05:29Z","pushed_at":"2016-03-24T19:27:50Z","git_url":"git://github.com/nickbutcher/plaid.git","ssh_url":"git@github.com:nickbutcher/plaid.git","clone_url":"https://github.com/nickbutcher/plaid.git","svn_url":"https://github.com/nickbutcher/plaid","homepage":null,"size":26066,"stargazers_count":4607,"watchers_count":4607,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":805,"mirror_url":null,"open_issues_count":11,"forks":805,"open_issues":11,"watchers":4607,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nickbutcher/plaid/pulls/77"},"html":{"href":"https://github.com/nickbutcher/plaid/pull/77"},"issue":{"href":"https://api.github.com/repos/nickbutcher/plaid/issues/77"},"comments":{"href":"https://api.github.com/repos/nickbutcher/plaid/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/nickbutcher/plaid/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/nickbutcher/plaid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nickbutcher/plaid/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/nickbutcher/plaid/statuses/6048bf0bc48f2e65935e64477787fb907493da67"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":13,"deletions":5,"changed_files":1}}