Hey, I am trying to use a proxy and use different ones for different tasks, which I originally had working, but today I encountered an error with it throwing an "tunneling socket could not be established, statusCode=407", only issue is I don't know exactly where to catch this error as I tried to get it on the onPreHttpRequest, but even with that the entire nodejs process crashed, and I can't really have that occur in production.
Proxy was showing as "http://user:pass@ip:port"
this.community.onPreHttpRequest = (id, source, options, contReq) => {
try {
if (options.uri.includes('/inventory/') && options.uri.includes('/252490/2')) { options.proxy = this.invProxies.getProxy() }
else if (source === 'steamcommunity') { options.proxy = this.communityProxy }
else if (source === 'tradeoffermanager') { options.proxy = this.managerProxy }
contReq()
return true
} catch (e) {
console.log(e)
}
}
Thanks in advance.