You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in GithubDownloader being very slow in China Mainland without a proper proxy! I can now only get it download through Cloudflare WARP (as it creates a virtual network interface directly).
A working example is to add a dispatcher on fetch:
import{ProxyAgent}from'undici';(async()=>{constres=awaitfetch('https://api.ipify.org?format=json',{dispatcher: newProxyAgent('http://127.0.0.1:16619')});constdata=awaitres.json();// shows my proxy server's IPconsole.log(data);})();
This results in
GithubDownloader
being very slow in China Mainland without a proper proxy! I can now only get it download through Cloudflare WARP (as it creates a virtual network interface directly).A working example is to add a dispatcher on
fetch
:See https://stackoverflow.com/questions/72534539/node-js-18-3-native-fetch-request-with-a-proxy
Also: node-fetch/node-fetch#195
The text was updated successfully, but these errors were encountered: