{"action":"created","issue":{"url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/71","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/71/comments","events_url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/71/events","html_url":"https://github.com/mixpanel/mixpanel-ruby/pull/71","id":64658041,"number":71,"title":"Raise ServerError when response is not a hash","user":{"login":"Zelnox","id":493,"avatar_url":"https://avatars.githubusercontent.com/u/493?v=3","gravatar_id":"","url":"https://api.github.com/users/Zelnox","html_url":"https://github.com/Zelnox","followers_url":"https://api.github.com/users/Zelnox/followers","following_url":"https://api.github.com/users/Zelnox/following{/other_user}","gists_url":"https://api.github.com/users/Zelnox/gists{/gist_id}","starred_url":"https://api.github.com/users/Zelnox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zelnox/subscriptions","organizations_url":"https://api.github.com/users/Zelnox/orgs","repos_url":"https://api.github.com/users/Zelnox/repos","events_url":"https://api.github.com/users/Zelnox/events{/privacy}","received_events_url":"https://api.github.com/users/Zelnox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T23:49:15Z","updated_at":"2015-03-27T21:57:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/pulls/71","html_url":"https://github.com/mixpanel/mixpanel-ruby/pull/71","diff_url":"https://github.com/mixpanel/mixpanel-ruby/pull/71.diff","patch_url":"https://github.com/mixpanel/mixpanel-ruby/pull/71.patch"},"body":"When mixpanel is configured to not allow verbose, the response is returned as '0' even on success. This causes a problem since the gem expects a hash, when `JSON.load(0)` returns 0, so a TypeError is raised. I wasn't sure which type of Error to use, but I imagine a ServerError could hint at a mixpanel configuration problem."},"comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/comments/87103422","html_url":"https://github.com/mixpanel/mixpanel-ruby/pull/71#issuecomment-87103422","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-ruby/issues/71","id":87103422,"user":{"login":"zyskowsk","id":3455047,"avatar_url":"https://avatars.githubusercontent.com/u/3455047?v=3","gravatar_id":"","url":"https://api.github.com/users/zyskowsk","html_url":"https://github.com/zyskowsk","followers_url":"https://api.github.com/users/zyskowsk/followers","following_url":"https://api.github.com/users/zyskowsk/following{/other_user}","gists_url":"https://api.github.com/users/zyskowsk/gists{/gist_id}","starred_url":"https://api.github.com/users/zyskowsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zyskowsk/subscriptions","organizations_url":"https://api.github.com/users/zyskowsk/orgs","repos_url":"https://api.github.com/users/zyskowsk/repos","events_url":"https://api.github.com/users/zyskowsk/events{/privacy}","received_events_url":"https://api.github.com/users/zyskowsk/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T21:56:59Z","updated_at":"2015-03-27T21:56:59Z","body":"Thanks @Zelnox!  I will talk a look at this soon and see if I can merge it in the next release!"}}