-
Notifications
You must be signed in to change notification settings - Fork 382
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
Unable to obtain token #1761
Comments
I didn't change any code, everything works fine when used in the new environment, which is very strange. Compared to the problematic environment, there are the following differences:
|
@liuchengts In the Windows environment is it consistently an |
In the windows environment I described at the beginning, it never succeeded. I thought it was a problem with npm install or a network problem. The actual situation is not |
That's strange, as it appears to work with Node 21 here on Windows (and in other environments): Anything unique with the Windows setup networking? Proxy perhaps? |
There may be a Windows network problem, but I'm not sure because there is a network management and control software installed by the company on the Windows computer. I'm not sure if that's the influence. Currently this only happens when using google-auth-library. Thank you for your help. I think this is an unsolvable problem because I can't determine what exactly causes getToken() ECONNRESET. So I think I can close this problem. Thank you again for your help |
I encountered a problem with requesting the API and was unable to obtain the token.
Operating system: windows11 x64
Environment: node:21.6.0
npm: 10.2.4
google-auth-library: 9.6.3
Steps to reproduce:
Occurs when oauth2Client.getToken(code) is called:
Related code:
please help me,thank you
The text was updated successfully, but these errors were encountered: