-
-
Notifications
You must be signed in to change notification settings - Fork 328
500 failed to obtain access token (Error: connect ECONNREFUSED) #54
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
Comments
500 failed to obtain access token (Error: connect ECONNREFUSED) PassportJs Code app.get('/auth/google', passport.authenticate('google', { session: false, passport.use(new GoogleOAuth2Strategy({
|
Hi, Can you please provide the solution for the above issue ?? |
I ran into the same problem and in my case using a proxy server caused a problem. To be more specific an error was occurred doing a POST to https://accounts.google.com/o/oauth2/token |
As @kalinichenko mentioned , the error is because you are behind a proxy , Try running it without proxy . Hope it should work beacause it worked for me . |
@jaredhanson What is the appropriate path for making sure that the solution to this problem isn't just "don't use a proxy"? I don't think the issue will be able to be solved in the light layer of passport - it's much deeper in the oauth lib. Just as an FYI there is a PR here for it: ciaranj/node-oauth#294 Maybe with a request coming from you, the author of oauth lib will consider merging this PR, which will allow you to close this open issue. I'm quite certain every other passportjs plugin/strategy has the exact same problem though |
No description provided.
The text was updated successfully, but these errors were encountered: