{"action":"created","issue":{"url":"https://api.github.com/repos/Strider-CD/strider-github/issues/25","labels_url":"https://api.github.com/repos/Strider-CD/strider-github/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Strider-CD/strider-github/issues/25/comments","events_url":"https://api.github.com/repos/Strider-CD/strider-github/issues/25/events","html_url":"https://github.com/Strider-CD/strider-github/issues/25","id":47090676,"number":25,"title":"poor error when failing authorization due to lack of email address","user":{"login":"keyvanfatehi","id":175305,"avatar_url":"https://avatars.githubusercontent.com/u/175305?v=3","gravatar_id":"","url":"https://api.github.com/users/keyvanfatehi","html_url":"https://github.com/keyvanfatehi","followers_url":"https://api.github.com/users/keyvanfatehi/followers","following_url":"https://api.github.com/users/keyvanfatehi/following{/other_user}","gists_url":"https://api.github.com/users/keyvanfatehi/gists{/gist_id}","starred_url":"https://api.github.com/users/keyvanfatehi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyvanfatehi/subscriptions","organizations_url":"https://api.github.com/users/keyvanfatehi/orgs","repos_url":"https://api.github.com/users/keyvanfatehi/repos","events_url":"https://api.github.com/users/keyvanfatehi/events{/privacy}","received_events_url":"https://api.github.com/users/keyvanfatehi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-10-28T22:38:46Z","updated_at":"2015-03-14T13:49:59Z","closed_at":"2015-01-15T15:06:34Z","body":"There is this error, which is apparently no longer thrown if you set your email address correctly in github.\r\n\r\nCode there needs to be inspected and determined if a better error can be thrown, e.g. \"You need to enter your email address into Github.\"\r\n\r\n```\r\nExpress\r\n500 TypeError: Cannot read property '0' of undefined\r\nat makeAccount (/Users/Hamid/Developer/strider/node_modules/strider-github/lib/webapp.js:167:28)\r\nat Strategy.validateAuth as _verify\r\nat /Users/Hamid/Developer/strider/node_modules/strider-github/node_modules/passport-github/node_modules/passport-oauth2/lib/strategy.js:188:22\r\nat /Users/Hamid/Developer/strider/node_modules/strider-github/node_modules/passport-github/lib/strategy.js:109:5\r\nat passBackControl (/Users/Hamid/Developer/strider/node_modules/strider-github/node_modules/passport-github/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:126:9)\r\nat IncomingMessage. (/Users/Hamid/Developer/strider/node_modules/strider-github/node_modules/passport-github/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:143:7)\r\nat IncomingMessage.EventEmitter.emit (events.js:117:20)\r\nat _stream_readable.js:920:16\r\nat process._tickCallback (node.js:415:13)\r\n```\r\n\r\nRef original issue: https://github.com/Strider-CD/strider/issues/599"},"comment":{"url":"https://api.github.com/repos/Strider-CD/strider-github/issues/comments/80491171","html_url":"https://github.com/Strider-CD/strider-github/issues/25#issuecomment-80491171","issue_url":"https://api.github.com/repos/Strider-CD/strider-github/issues/25","id":80491171,"user":{"login":"knownasilya","id":34726,"avatar_url":"https://avatars.githubusercontent.com/u/34726?v=3","gravatar_id":"","url":"https://api.github.com/users/knownasilya","html_url":"https://github.com/knownasilya","followers_url":"https://api.github.com/users/knownasilya/followers","following_url":"https://api.github.com/users/knownasilya/following{/other_user}","gists_url":"https://api.github.com/users/knownasilya/gists{/gist_id}","starred_url":"https://api.github.com/users/knownasilya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knownasilya/subscriptions","organizations_url":"https://api.github.com/users/knownasilya/orgs","repos_url":"https://api.github.com/users/knownasilya/repos","events_url":"https://api.github.com/users/knownasilya/events{/privacy}","received_events_url":"https://api.github.com/users/knownasilya/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T13:49:59Z","updated_at":"2015-03-14T13:49:59Z","body":"@smilledge I added your suggestion to the README"}}