Open muzuiget opened 4 years ago
Currently gaxios not support https_proxy environment variable like socks5://127.0.0.1:8080. I did a litte hack on the code, just change the file https://github.com/googleapis/gaxios/blob/v2.2.0/src/gaxios.ts#L60
https_proxy
socks5://127.0.0.1:8080
HttpsProxyAgent = require('https-proxy-agent');
to
HttpsProxyAgent = require('proxy-agent');
Then it work fine.
proxy-agent also write by the https-proxy-agent author.
thanks for the suggestion @muzuiget :+1:
Related:
If we migrate to fetch this may be an upstream blocker:
fetch
Currently gaxios not support
https_proxy
environment variable likesocks5://127.0.0.1:8080
. I did a litte hack on the code, just change the file https://github.com/googleapis/gaxios/blob/v2.2.0/src/gaxios.ts#L60to
Then it work fine.
proxy-agent also write by the https-proxy-agent author.