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

Add a proxy option for using vpn #2345

Closed
qiulang opened this issue Sep 1, 2020 · 6 comments
Closed

Add a proxy option for using vpn #2345

qiulang opened this issue Sep 1, 2020 · 6 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@qiulang
Copy link

qiulang commented Sep 1, 2020

Like request has proxy option https://github.com/request/request#proxies, it is extremely useful for Chinese developers who use vpn to access google api

I actually opened a related issue #1471 but it was closed.

I raised a question at stackoverflow https://stackoverflow.com/questions/53593182/client-network-socket-disconnected-before-secure-tls-connection-was-established

But I think if api can support proxy option, it will be easiest solution.

@JustinBeckwith
Copy link
Contributor

Greetings! Have you followed the instructions here?
https://github.com/googleapis/google-api-nodejs-client#using-a-proxy

@JustinBeckwith JustinBeckwith added the type: question Request for information or clarification. Not an issue. label Sep 1, 2020
@qiulang
Copy link
Author

qiulang commented Sep 2, 2020

I didn't know that and now I finally made it work with http_proxy='http://myvpn' node index.js Thanks!

Can you add more information about this setting ? For example can you add some sample code for proxy configuration option?

It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the proxy configuration option.

@fhinkel
Copy link
Contributor

fhinkel commented Dec 7, 2020

Greetings, we're closing this. Looks like the issue got resolved. Please let us know if the issue needs to be reopened.

@fhinkel fhinkel closed this as completed Dec 7, 2020
@fhinkel fhinkel assigned fhinkel and unassigned sofisl Dec 8, 2020
@atubo2012
Copy link

I didn't know that and now I finally made it work with http_proxy='http://myvpn' node index.js Thanks!

Can you add more information about this setting ? For example can you add some sample code for proxy configuration option?

It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the proxy configuration option.

Could you share how to confirm the 'myvpn' in your environment ?
I've encountered same issue, many thanks. :)

@atubo2012
Copy link

I didn't know that and now I finally made it work with http_proxy='http://myvpn' node index.js Thanks!
Can you add more information about this setting ? For example can you add some sample code for proxy configuration option?

It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the proxy configuration option.

Could you share how to confirm the 'myvpn' in your environment ?
I've encountered same issue, many thanks. :)

I've found it:
Press the Windows Key
Search For Internet Options
Click on "Internet Options"
Click On "Connection"
Go to LAN Settings
Uncheck "Use Proxy Server for LAN ...."

@atubo2012
Copy link

I didn't know that and now I finally made it work with http_proxy='http://myvpn' node index.js Thanks!

Can you add more information about this setting ? For example can you add some sample code for proxy configuration option?

It is valid to define a proxy in one of the environment variables, but then override it for a specific request, using the proxy configuration option.

Solved after removing EV https_proxy='https://127.0.0.1:1003' and Only keep http_proxy='http://127.0.0.1:1003'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants