Open AidanWelch opened 4 months ago
Probably an error with node-fetch as seen on this tangentially related issue: https://github.com/node-fetch/node-fetch/issues/892
Actually I get it with node:https too, also not being caught by req.on('error', console.error)
passing rejectUnauthorized
like so:
const agent = new HttpsProxyAgent( process.env.PROXY_STRING, { rejectUnauthorized: false });
stops this error specifically, but the issue is still that it doesn't throw the error.
Having the same issue here!
It's normal that some proxied requests fail, so I have simple error handling, the issue is that the error is not being caught and instead crashing the script,
Crashes with this error:
It doesn't get caught in the catch statement.