{"action":"created","issue":{"url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/214","labels_url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/214/comments","events_url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/214/events","html_url":"https://github.com/product-definition-center/product-definition-center/pull/214","id":116726373,"number":214,"title":"Improve error handling in client","user":{"login":"lubomir","id":89674,"avatar_url":"https://avatars.githubusercontent.com/u/89674?v=3","gravatar_id":"","url":"https://api.github.com/users/lubomir","html_url":"https://github.com/lubomir","followers_url":"https://api.github.com/users/lubomir/followers","following_url":"https://api.github.com/users/lubomir/following{/other_user}","gists_url":"https://api.github.com/users/lubomir/gists{/gist_id}","starred_url":"https://api.github.com/users/lubomir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lubomir/subscriptions","organizations_url":"https://api.github.com/users/lubomir/orgs","repos_url":"https://api.github.com/users/lubomir/repos","events_url":"https://api.github.com/users/lubomir/events{/privacy}","received_events_url":"https://api.github.com/users/lubomir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-13T08:55:22Z","updated_at":"2015-11-18T07:37:06Z","closed_at":"2015-11-18T07:37:05Z","pull_request":{"url":"https://api.github.com/repos/product-definition-center/product-definition-center/pulls/214","html_url":"https://github.com/product-definition-center/product-definition-center/pull/214","diff_url":"https://github.com/product-definition-center/product-definition-center/pull/214.diff","patch_url":"https://github.com/product-definition-center/product-definition-center/pull/214.patch"},"body":"When network request fails, the error printing is more robust. Ideally,\r\nthe error response should be JSON encoded. In that case it will be\r\npretty printed.\r\n\r\nIf JSON parsing or pretty printing fails, user is prompted to file a\r\nbug. The response data is logged only if it was valid JSON, as the only\r\ncase of non-JSON responses is a huge HTML dump.\r\n\r\nThe error is now consistently printed to stderr.\r\n\r\nJIRA: PDC-1193"},"comment":{"url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/comments/157632245","html_url":"https://github.com/product-definition-center/product-definition-center/pull/214#issuecomment-157632245","issue_url":"https://api.github.com/repos/product-definition-center/product-definition-center/issues/214","id":157632245,"user":{"login":"lubomir","id":89674,"avatar_url":"https://avatars.githubusercontent.com/u/89674?v=3","gravatar_id":"","url":"https://api.github.com/users/lubomir","html_url":"https://github.com/lubomir","followers_url":"https://api.github.com/users/lubomir/followers","following_url":"https://api.github.com/users/lubomir/following{/other_user}","gists_url":"https://api.github.com/users/lubomir/gists{/gist_id}","starred_url":"https://api.github.com/users/lubomir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lubomir/subscriptions","organizations_url":"https://api.github.com/users/lubomir/orgs","repos_url":"https://api.github.com/users/lubomir/repos","events_url":"https://api.github.com/users/lubomir/events{/privacy}","received_events_url":"https://api.github.com/users/lubomir/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T07:37:05Z","updated_at":"2015-11-18T07:37:05Z","body":"Opened as https://github.com/product-definition-center/pdc-client/pull/5"}}