{"action":"created","issue":{"url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/5","repository_url":"https://api.github.com/repos/TryGhost/passport-ghost","labels_url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/5/comments","events_url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/5/events","html_url":"https://github.com/TryGhost/passport-ghost/issues/5","id":185626304,"number":5,"title":"Optimise error messages","user":{"login":"kirrg001","id":1160712,"avatar_url":"https://avatars.githubusercontent.com/u/1160712?v=3","gravatar_id":"","url":"https://api.github.com/users/kirrg001","html_url":"https://github.com/kirrg001","followers_url":"https://api.github.com/users/kirrg001/followers","following_url":"https://api.github.com/users/kirrg001/following{/other_user}","gists_url":"https://api.github.com/users/kirrg001/gists{/gist_id}","starred_url":"https://api.github.com/users/kirrg001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirrg001/subscriptions","organizations_url":"https://api.github.com/users/kirrg001/orgs","repos_url":"https://api.github.com/users/kirrg001/repos","events_url":"https://api.github.com/users/kirrg001/events{/privacy}","received_events_url":"https://api.github.com/users/kirrg001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TryGhost/passport-ghost/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T10:08:40Z","updated_at":"2016-10-27T12:14:49Z","closed_at":null,"body":"When starting Ghost and passport-ghost can't connect to Patronus, i am getting this:\r\n\r\n````\r\nkirrg001@DESKTOP-PETFQIA MINGW64 ~/Desktop/dev/ghost (master)\r\n$ node index.js\r\n[2016-10-27 10:07:14] ERROR\r\n\r\nThe request could not be understood.\r\nlevel:normal\r\n\r\nBadRequestError: The request could not be understood.\r\n    at new BadRequestError (C:\\Users\\kirrg001\\Desktop\\dev\\ghost\\node_modules\\passport-ghost\\node_modules\\ghost-ignition\\lib\\errors\\index.js:75:23)\r\n    at C:\\Users\\kirrg001\\Desktop\\dev\\ghost\\node_modules\\passport-ghost\\lib\\oauth2.js:96:35\r\n    at ClientRequest.<anonymous> (C:\\Users\\kirrg001\\Desktop\\dev\\ghost\\node_modules\\oauth\\lib\\oauth2.js:148:5)\r\n    at emitOne (events.js:96:13)\r\n    at ClientRequest.emit (events.js:188:7)\r\n    at Socket.socketErrorListener (_http_client.js:310:9)\r\n    at emitOne (events.js:96:13)\r\n    at Socket.emit (events.js:188:7)\r\n    at emitErrorNT (net.js:1276:8)\r\n    at _combinedTickCallback (internal/process/next_tick.js:74:11)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:122:9)\r\n\r\nError: connect ECONNREFUSED 127.0.0.1:80\r\n    at Object.exports._errnoException (util.js:1026:11)\r\n    at exports._exceptionWithHostPort (util.js:1049:20)\r\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14)\r\n````\r\n\r\nThis is pretty cool, it shows us lots of information except of the information where the error is coming from. Yeah you can read through the stack, but as a non Ghost developer, that might be confusing.\r\nI would suggest adding an error code to the BadRequestError. Or an error help value."},"comment":{"url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/comments/256624398","html_url":"https://github.com/TryGhost/passport-ghost/issues/5#issuecomment-256624398","issue_url":"https://api.github.com/repos/TryGhost/passport-ghost/issues/5","id":256624398,"user":{"login":"ErisDS","id":101513,"avatar_url":"https://avatars.githubusercontent.com/u/101513?v=3","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T12:14:49Z","updated_at":"2016-10-27T12:14:49Z","body":"This shouldn't be a fatal error for starting Ghost, IMO?"}}
{"actor":{"display_login":"ErisDS"}}