jaredhanson / passport-github

GitHub authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-github/?utm_source=github&utm_medium=referral&utm_campaign=passport-github&utm_content=about
MIT License
537 stars 290 forks source link

TypeError: Cannot read property '0' of undefined #59

Closed zxhs1988 closed 8 years ago

zxhs1988 commented 8 years ago

Hi, I use the development of the account test is no problem, but the use of other non developer account landing on this issue

GET /auth/github 302 7.058 ms - 0 events.js:141 throw er; // Unhandled 'error' event ^

TypeError: Cannot read property '0' of undefined at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/config/passport.js:75:62 at Query. (/Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/lib/model.js:3352:16) at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/node_modules/kareem/index.js:244:21 at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/node_modules/kareem/index.js:127:16 at nextTickCallbackWith0Args (node.js:415:9) at process._tickCallback (node.js:344:13)

jaredhanson commented 8 years ago

That stack trace points to your application code, not this module

Sent from my iPhone

On Jun 29, 2016, at 7:05 PM, zxhs1988 notifications@github.com wrote:

Hi, I use the development of the account test is no problem, but the use of other non developer account landing on this issue

GET /auth/github 302 7.058 ms - 0 events.js:141 throw er; // Unhandled 'error' event ^

TypeError: Cannot read property '0' of undefined at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/config/passport.js:75:62 at Query. (/Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/lib/model.js:3352:16) at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/node_modules/kareem/index.js:244:21 at /Applications/XAMPP/xamppfiles/htdocs/html/baoniu-voting-app/node_modules/mongoose/node_modules/kareem/index.js:127:16 at nextTickCallbackWith0Args (node.js:415:9) at process._tickCallback (node.js:344:13)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.