{"action":"created","issue":{"url":"https://api.github.com/repos/amro/gibbon/issues/186","repository_url":"https://api.github.com/repos/amro/gibbon","labels_url":"https://api.github.com/repos/amro/gibbon/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/amro/gibbon/issues/186/comments","events_url":"https://api.github.com/repos/amro/gibbon/issues/186/events","html_url":"https://github.com/amro/gibbon/pull/186","id":141125207,"number":186,"title":"capture :status_code and :raw_body","user":{"login":"zawaideh","id":471696,"avatar_url":"https://avatars.githubusercontent.com/u/471696?v=3","gravatar_id":"","url":"https://api.github.com/users/zawaideh","html_url":"https://github.com/zawaideh","followers_url":"https://api.github.com/users/zawaideh/followers","following_url":"https://api.github.com/users/zawaideh/following{/other_user}","gists_url":"https://api.github.com/users/zawaideh/gists{/gist_id}","starred_url":"https://api.github.com/users/zawaideh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zawaideh/subscriptions","organizations_url":"https://api.github.com/users/zawaideh/orgs","repos_url":"https://api.github.com/users/zawaideh/repos","events_url":"https://api.github.com/users/zawaideh/events{/privacy}","received_events_url":"https://api.github.com/users/zawaideh/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-15T23:13:50Z","updated_at":"2016-03-16T13:11:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/amro/gibbon/pulls/186","html_url":"https://github.com/amro/gibbon/pull/186","diff_url":"https://github.com/amro/gibbon/pull/186.diff","patch_url":"https://github.com/amro/gibbon/pull/186.patch"},"body":"API request errors are not returning the body of the response when it is not in JSON format. \r\n\r\nI reordered the lines so that the status code and raw body are captured before attempting to parse the json"},"comment":{"url":"https://api.github.com/repos/amro/gibbon/issues/comments/197319758","html_url":"https://github.com/amro/gibbon/pull/186#issuecomment-197319758","issue_url":"https://api.github.com/repos/amro/gibbon/issues/186","id":197319758,"user":{"login":"amro","id":16900,"avatar_url":"https://avatars.githubusercontent.com/u/16900?v=3","gravatar_id":"","url":"https://api.github.com/users/amro","html_url":"https://github.com/amro","followers_url":"https://api.github.com/users/amro/followers","following_url":"https://api.github.com/users/amro/following{/other_user}","gists_url":"https://api.github.com/users/amro/gists{/gist_id}","starred_url":"https://api.github.com/users/amro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amro/subscriptions","organizations_url":"https://api.github.com/users/amro/orgs","repos_url":"https://api.github.com/users/amro/repos","events_url":"https://api.github.com/users/amro/events{/privacy}","received_events_url":"https://api.github.com/users/amro/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T13:11:45Z","updated_at":"2016-03-16T13:11:45Z","body":"I'll merge this as is for now. If you feel inclined, please to send another PR w/ a test case. Otherwise I'll try to add one later."}}