-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught exception: AssertionError [ERR_ASSERTION] #43
Comments
Having same issue while using proxy and "non existing domain" const options = {
uri: url,
timeout: requestTimeout,
resolveWithFullResponse: true,
proxy: `http://${process.env.PROXY_USERNAME}:${process.env.PROXY_PASSWORD}@us.smartproxy.com:10000`
} |
Bumped into exactly the same error in a batch process which killed the whole thing. |
Any way to work around this issue? |
Only way to avoid this even though it isn't exactly good practice. Alternatively, you could rebuild the tunnel-agent library, but this is a fast solution if you're being lazy. |
I ended up with own fix fork: remoteorigin@0907b7b |
Same here:
|
Fix pending on PR: #51 |
hi is anyone merging this issue? I really need to get it fixed... tnx |
In function onConnect you use assert.equal(head.length,0).
If assertion fails, it leads to uncaught process exception.
Please process this as an error so than exception is not beign thrown to nowhere.
This problem arises when I use request module and working with bad proxies.
The text was updated successfully, but these errors were encountered: