0
votes

I am using Axios with Https-Proxy-Agent, and it is only authenticates when the proxy is whitelisted prior to sending the request. If I am trying to authenticate via user and pass, it does not authenticate, and throws an eror saying that the proxy credentials are incorrect. Am I doing this right?

By the way, splitproxy[0] is ip, 1 is port, 2 is user, and 3 is pass.

Thanks

proxy: false,
httpsAgent: new HttpsProxyAgent.HttpsProxyAgent(`${splitproxy[2]}:${splitproxy[3]}@${splitproxy[0]}:${splitproxy[1]}`),
timeout: 10000