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
node-fetch
does not work behind a proxy
#1770
Comments
Looking forward to a solution, because it completely breaks the usage of many nodeJS apps which use |
@deeprobin Did you find any workaround for this ? |
@hinricht In my opinion, this should be part of node-fetch. |
I just tried https://github.com/rofl0r/proxychains-ng and it solved at least my issue with https://github.com/todogroup/repolinter (which uses node-fetch internally). |
I've been using global-agent with node-fetch for a while now (though on v2.7 and only for node < v18) import * as globalAgent from 'global-agent';
process.env["GLOBAL_AGENT_HTTP_PROXY"] = process.env.HTTP_PROXY || "http://my.proxy.address:8888";
globalAgent.bootstrap(); |
Just hit the same problem using live-plugin-manager. I also agree that this should be added to node-fetch instead of every project using node-fetch having to implement their own proxy handler. |
Reproduction
Steps to reproduce the behavior:
Expected behavior
If not explicitly specified, use of the system proxy.
Under Windows, for example, the proxy settings should be taken into account.
With more priority, the environment variables HTTP_PROXY, HTTPS_PROXY & NO_PROXY should also be taken into account.
Screenshots
Your Environment
^3.3.1
18.15.0
7.30.0
Microsoft Windows 10 Enterprise Version 22H2 (Build 19045.3208)
Additional context
The text was updated successfully, but these errors were encountered: