Skip to content
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

ERR_INTERNAL_ASSERTION in 15.x #36492

Closed
Allain55 opened this issue Dec 12, 2020 · 3 comments
Closed

ERR_INTERNAL_ASSERTION in 15.x #36492

Allain55 opened this issue Dec 12, 2020 · 3 comments
Labels
http Issues or PRs related to the http subsystem.

Comments

@Allain55
Copy link

What steps will reproduce the bug?

No idea

How often does it reproduce? Is there a required condition?

It rarely occurs, most of the time the same code works just fine but sometimes I get this error. When I try to run the same code without any change it works again.

What is the expected behavior?

No error

What do you see instead?

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

    at new NodeError (node:internal/errors:278:15)
    at assert (node:internal/assert:14:11)
    at ClientRequest.Writable.destroy (node:internal/streams/writable:844:5)
    at Request._destroy %PROJECT%/node_modules/got/dist/source/core/index.js:1365:32)
    at _destroy (node:internal/streams/destroy:67:23)
    at Request.destroy (node:internal/streams/destroy:59:5)
    at Request._error (%PROJECT%/node_modules/got/dist/source/core/index.js:1187:14)
    at /%PROJECT%/node_modules/got/dist/source/core/index.js:1267:23
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)

Additional information

It happened with v15.1 (2 times) and v15.3 (1 time) also but didn't happen with 14.11 (it's used for a few weeks now even in production).
I think my internet connection problem causes this. I have some technical problems: some websites won't work only after a few retry, sometimes npm install fails with EHOSTUNREACH error

@mscdex
Copy link
Contributor

mscdex commented Dec 12, 2020

It looks like got may be attempting to implement its own ClientRequest which might not be close enough to node core's that trips an assertion? Have you tried using a different http client library to see if the problem persists?

@Allain55
Copy link
Author

No, I only use got with http2. Thanks for the info I have an idea why is this happening rarely. Could this be a got bug? Got version is 11.7.0

@targos targos added the http Issues or PRs related to the http subsystem. label Dec 27, 2020
@avivkeller
Copy link
Member

If you can't reproduce without any dependencies, it's probably a got bug.

Regardless, this version has reached EoL, so if you can reproduce without dependencies, and in the latest version, please open a new issue.

@avivkeller avivkeller closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http Issues or PRs related to the http subsystem.
Projects
None yet
Development

No branches or pull requests

4 participants