Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth 的报错处理 #68

Open
amio opened this issue Jun 10, 2015 · 0 comments
Open

OAuth 的报错处理 #68

amio opened this issue Jun 10, 2015 · 0 comments
Assignees

Comments

@amio
Copy link
Contributor

amio commented Jun 10, 2015

这两天 Github 的 oauth 出了点问题,
我们在页面上直接把错误抛出来了
应该做下处理,显示友好点,现在看起来像是 ErrorTracker 坏掉的样子。

url: /auth/callback/github?code=eebb24bb4c19571ca63a

页面内容:

InternalOAuthError: failed to fetch user profile
   at /srv/www/eb/node_modules/passport-github/lib/passport-github/strategy.js:90:28
   at passBackControl (/srv/www/eb/node_modules/passport-github/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:124:9)
   at IncomingMessage.<anonymous> (/srv/www/eb/node_modules/passport-github/node_modules/passport-oauth/node_modules/oauth/lib/oauth2.js:143:7)
   at IncomingMessage.emit (events.js:129:20)
   at _stream_readable.js:908:16
   at process._tickCallback (node.js:355:11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants