{"action":"created","issue":{"url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/7","repository_url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby","labels_url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/7/comments","events_url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/7/events","html_url":"https://github.com/RJMetrics/RJMetrics-ruby/pull/7","id":89238057,"number":7,"title":"Guard against empty error response","user":{"login":"george-semenov","id":8415584,"avatar_url":"https://avatars.githubusercontent.com/u/8415584?v=3","gravatar_id":"","url":"https://api.github.com/users/george-semenov","html_url":"https://github.com/george-semenov","followers_url":"https://api.github.com/users/george-semenov/followers","following_url":"https://api.github.com/users/george-semenov/following{/other_user}","gists_url":"https://api.github.com/users/george-semenov/gists{/gist_id}","starred_url":"https://api.github.com/users/george-semenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/george-semenov/subscriptions","organizations_url":"https://api.github.com/users/george-semenov/orgs","repos_url":"https://api.github.com/users/george-semenov/repos","events_url":"https://api.github.com/users/george-semenov/events{/privacy}","received_events_url":"https://api.github.com/users/george-semenov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"owengalenjones","id":690817,"avatar_url":"https://avatars.githubusercontent.com/u/690817?v=3","gravatar_id":"","url":"https://api.github.com/users/owengalenjones","html_url":"https://github.com/owengalenjones","followers_url":"https://api.github.com/users/owengalenjones/followers","following_url":"https://api.github.com/users/owengalenjones/following{/other_user}","gists_url":"https://api.github.com/users/owengalenjones/gists{/gist_id}","starred_url":"https://api.github.com/users/owengalenjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owengalenjones/subscriptions","organizations_url":"https://api.github.com/users/owengalenjones/orgs","repos_url":"https://api.github.com/users/owengalenjones/repos","events_url":"https://api.github.com/users/owengalenjones/events{/privacy}","received_events_url":"https://api.github.com/users/owengalenjones/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-18T08:57:51Z","updated_at":"2016-02-05T18:22:20Z","closed_at":"2016-02-05T18:21:53Z","pull_request":{"url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/pulls/7","html_url":"https://github.com/RJMetrics/RJMetrics-ruby/pull/7","diff_url":"https://github.com/RJMetrics/RJMetrics-ruby/pull/7.diff","patch_url":"https://github.com/RJMetrics/RJMetrics-ruby/pull/7.patch"},"body":"We're getting a couple of `NoMethodError: undefined method '[]' for nil:NilClass` exceptions at https://github.com/RJMetrics/RJMetrics-ruby/blob/master/lib/rjmetrics-client/client.rb#L112 from time to time, those are usually fix themselves on subsequent push attempts but still it would be nice to raise a proper exception on error.\r\n\r\nThis is happening when `error.response` is `nil`  so `JSON.parse` returns nil as well."},"comment":{"url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/comments/180482017","html_url":"https://github.com/RJMetrics/RJMetrics-ruby/pull/7#issuecomment-180482017","issue_url":"https://api.github.com/repos/RJMetrics/RJMetrics-ruby/issues/7","id":180482017,"user":{"login":"owengalenjones","id":690817,"avatar_url":"https://avatars.githubusercontent.com/u/690817?v=3","gravatar_id":"","url":"https://api.github.com/users/owengalenjones","html_url":"https://github.com/owengalenjones","followers_url":"https://api.github.com/users/owengalenjones/followers","following_url":"https://api.github.com/users/owengalenjones/following{/other_user}","gists_url":"https://api.github.com/users/owengalenjones/gists{/gist_id}","starred_url":"https://api.github.com/users/owengalenjones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owengalenjones/subscriptions","organizations_url":"https://api.github.com/users/owengalenjones/orgs","repos_url":"https://api.github.com/users/owengalenjones/repos","events_url":"https://api.github.com/users/owengalenjones/events{/privacy}","received_events_url":"https://api.github.com/users/owengalenjones/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T18:22:20Z","updated_at":"2016-02-05T18:22:20Z","body":"@george-semenov thanks!  Sorry to have neglected this, never saw the PR notification."}}