-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Node js internal assertion error in socket #50841
Comments
Possibly related to #44731. cc @ShogunPanda |
@tniessen I'm not sure this time. As you can see, there are no |
As a workaround. I think you can run your app with request({
autoSelectFamily: false, // autoSelectFamily is not a standard parameter but it will be passed to net.connect
}, |
@theanarkh Nevermind, I just saw the PR. |
PR-URL: nodejs#51826 Fixes: nodejs#50841 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Version
v21.2.0
Platform
Darwin 22.6.0 Darwin Kernel Version 22.6.0:; RELEASE_ARM64_T6020 arm64
Subsystem
socket
What steps will reproduce the bug?
In a js file, copy and paste
In terminal (1), run
node <name of file>
.In terminal (2), make a request to the application by starting python with:
How often does it reproduce? Is there a required condition?
Every time
What is the expected behavior? Why is that the expected behavior?
The expected behavior is that an error that is not an ERR_INTERNAL_ASSERTION is thrown (the error
Call to address is blocked
in https://github.com/y-mehta/ssrf-req-filter/blob/e45da7cd5f1ede17b0237dcd7daa83a85e07afd6/lib/index.js#L38C7-L38C13 is thrown)I suspect this is caused by assert(self.connecting)
What do you see instead?
node:internal/assert:14
throw new ERR_INTERNAL_ASSERTION(message);
^
Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
code: 'ERR_INTERNAL_ASSERTION'
}
Additional information
No response
The text was updated successfully, but these errors were encountered: