{"action":"opened","issue":{"url":"https://api.github.com/repos/getsentry/craft/issues/8","repository_url":"https://api.github.com/repos/getsentry/craft","labels_url":"https://api.github.com/repos/getsentry/craft/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/craft/issues/8/comments","events_url":"https://api.github.com/repos/getsentry/craft/issues/8/events","html_url":"https://github.com/getsentry/craft/issues/8","id":372854265,"node_id":"MDU6SXNzdWUzNzI4NTQyNjU=","number":8,"title":"Print better messages for generic HTTP errors","user":{"login":"jan-auer","id":1433023,"node_id":"MDQ6VXNlcjE0MzMwMjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1433023?v=4","gravatar_id":"","url":"https://api.github.com/users/jan-auer","html_url":"https://github.com/jan-auer","followers_url":"https://api.github.com/users/jan-auer/followers","following_url":"https://api.github.com/users/jan-auer/following{/other_user}","gists_url":"https://api.github.com/users/jan-auer/gists{/gist_id}","starred_url":"https://api.github.com/users/jan-auer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jan-auer/subscriptions","organizations_url":"https://api.github.com/users/jan-auer/orgs","repos_url":"https://api.github.com/users/jan-auer/repos","events_url":"https://api.github.com/users/jan-auer/events{/privacy}","received_events_url":"https://api.github.com/users/jan-auer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T07:47:54Z","updated_at":"2018-10-23T07:47:54Z","closed_at":null,"author_association":"MEMBER","body":"For generic HTTP errors, it would be better to print additional information, rather than:\r\n\r\n```\r\n✖ error HttpError\r\n  at response.text.then.message (/Users/jauer/.config/yarn/global/node_modules/@octokit/rest/lib/request/request.js:72:19)\r\n  at process._tickCallback (internal/process/next_tick.js:68:7)\r\n```\r\n\r\nDesirable user information (INFO log level) would be:\r\n - The operation that was executing\r\n - Potential reasons, if known\r\n\r\nDesirable debug information (DEBUG log level) would be:\r\n - The request URL\r\n - Status code, potentially part of the response body if feasible\r\n - The calling function and ideally its stack trace"}}
{"actor":{"display_login":"jan-auer"}}