Bug Description
const pool = new Pool(url);
const proxyAgent = new ProxyAgent("http://one-proxy:8080");
const { statusCode, body } = await pool.request({
...
dispatcher: proxyAgent,
...
...});
when Pool is used, it's not picking up { ..., dispatcher: new ProxyAgent("...")}, nor setGlobalDispatcher(proxyAgent).
However, request is used, ProxyAgent works.
my code is behind the proxy. also Pool is the one I will need to use.
Reproducible By
Expected Behavior
Logs & Screenshots
{
error: Error: getaddrinfo ENOTFOUND eth-testnet-communities-152b99c6597fb22e.elb.us-west-2.amazonaws.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'eth-testnet-communities-152b99c6597fb22e.elb.us-west-2.amazonaws.com'
}
}
Environment
Node v16.14.0
Additional context
Bug Description
when Pool is used, it's not picking up { ..., dispatcher: new ProxyAgent("...")}, nor setGlobalDispatcher(proxyAgent).
However,
requestis used, ProxyAgent works.my code is behind the proxy. also Pool is the one I will need to use.
Reproducible By
Expected Behavior
Logs & Screenshots
Environment
Node v16.14.0
Additional context