-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Can't use proxy to do JWT authentication with googleapis #998
Comments
After referencing on the workaround regarding the proxy issues with axios, which
Reference: StackOverflow |
I've encounter this also, |
Google My Business customers, such as ours, that need to use Google APIs to make best use of this service should not be held hostage by a glaring external issue that was opened "May 30, 2017". And this external issue is begging to merge a proposed fix for the past 6+ months?? |
Update: axios/axios#959 has been merged. I guess we are waiting for a new axios release? |
A workaround I found is to clear the http_proxy env variables and instead run the node app in proxychains:
or change http to socks5 for socks proxy etc. |
nothing solving, explaining that issue yet ? |
This is a 3 year old bug that was fixed. If you're having problems, please open a new issue with as many details as possible. |
I have a NodeJS API working behind a corporate proxy and I have been trying to do authentication with Google with their NodeJS client:
However, no matter how I configure the proxy option, I still either get a timeout error or something like
Some people managed to fix it by changing the port to 443 but it doesn't apply to my case since that port is not available to me inside the server. And I've already referenced on the discussions and solutions proposed here:
StackOverflow: node-request - Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
googleapis: There is no facility for passing a proxy to the oauth2client
Axios: Request to HTTPS with HTTP proxy fails
Using jwtClient.authenticate() behind a proxy results in ETIMEDOUT error
It also seems like Vue is also encountering a similar problem yesterday, they changed from using axios to using request instead. Is there a similar workaround for googleapis too?
Note that I have also asked this question on StackOverflow (https://stackoverflow.com/questions/48766209/cant-use-proxy-to-do-jwt-authentication-with-googleapis).
The text was updated successfully, but these errors were encountered: