zjael / simple-proxy-agent

Simple agent for sending HTTP and HTTPS traffic through HTTP and SOCKS proxies
MIT License
25 stars 5 forks source link

node internal/process/esm_loader 108 internalBinding('errors').triggerUncaughtException(false Thrown at at loadESM #76

Closed mepanko91 closed 1 year ago

mepanko91 commented 1 year ago

Hi Dev, I have an issue with this. I am not able to catch this exception in try catch block.

node:internal/process/esm_loader:108
    internalBinding('errors').triggerUncaughtException(
                              ^
false
Thrown at:
    at loadESM (node:internal/process/esm_loader:108:31)

Node.js v19.0.0

This exception occurs sometimes when I connect to a faulty proxy or a proxy with wrong address. I just want to catch this error but its not getting caught in try catch. I am using this agent with Got request module. Is there any workaround for solving this ?

Thanks Regards User

mepanko91 commented 1 year ago

It was because of some other mistake I made. I was calling a method without needed args. Apologies Have good day