{"action":"closed","issue":{"url":"https://api.github.com/repos/confluentinc/schema-registry/issues/142","repository_url":"https://api.github.com/repos/confluentinc/schema-registry","labels_url":"https://api.github.com/repos/confluentinc/schema-registry/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/schema-registry/issues/142/comments","events_url":"https://api.github.com/repos/confluentinc/schema-registry/issues/142/events","html_url":"https://github.com/confluentinc/schema-registry/issues/142","id":60036473,"number":142,"title":"RestUtils.httpRequest needs to handle parse errors when deserializing responses","user":{"login":"ewencp","id":47366,"avatar_url":"https://avatars.githubusercontent.com/u/47366?v=3","gravatar_id":"","url":"https://api.github.com/users/ewencp","html_url":"https://github.com/ewencp","followers_url":"https://api.github.com/users/ewencp/followers","following_url":"https://api.github.com/users/ewencp/following{/other_user}","gists_url":"https://api.github.com/users/ewencp/gists{/gist_id}","starred_url":"https://api.github.com/users/ewencp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewencp/subscriptions","organizations_url":"https://api.github.com/users/ewencp/orgs","repos_url":"https://api.github.com/users/ewencp/repos","events_url":"https://api.github.com/users/ewencp/events{/privacy}","received_events_url":"https://api.github.com/users/ewencp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/confluentinc/schema-registry/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/confluentinc/schema-registry/milestones/2","html_url":"https://github.com/confluentinc/schema-registry/milestones/Second%20Release","labels_url":"https://api.github.com/repos/confluentinc/schema-registry/milestones/2/labels","id":1020699,"number":2,"title":"Second Release","description":"","creator":{"login":"ewencp","id":47366,"avatar_url":"https://avatars.githubusercontent.com/u/47366?v=3","gravatar_id":"","url":"https://api.github.com/users/ewencp","html_url":"https://github.com/ewencp","followers_url":"https://api.github.com/users/ewencp/followers","following_url":"https://api.github.com/users/ewencp/following{/other_user}","gists_url":"https://api.github.com/users/ewencp/gists{/gist_id}","starred_url":"https://api.github.com/users/ewencp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewencp/subscriptions","organizations_url":"https://api.github.com/users/ewencp/orgs","repos_url":"https://api.github.com/users/ewencp/repos","events_url":"https://api.github.com/users/ewencp/events{/privacy}","received_events_url":"https://api.github.com/users/ewencp/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":17,"state":"open","created_at":"2015-03-13T17:34:42Z","updated_at":"2016-05-09T16:52:09Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-03-05T23:50:18Z","updated_at":"2016-05-09T16:52:09Z","closed_at":"2016-05-09T16:52:09Z","body":"Both HTTP_OK and error responses parse the data without any protection against exceptions.  [This email thread](https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/confluent-platform/OaWMfE533OI/A_rJIzNHgKsJ) shows a case where it looks like we're getting HTML instead of JSON back from the server (the `<` in the error message is probably the first opening tag). We should still be able to generate a reasonable error response to pass along if it was an HTTP error code, or generate a new error indicating the parsing problem if it was a 200 OK."}}