Skip to content

ERR_INTERNAL_ASSERTION #2708

Closed
Closed

Description

@gondone666

I made multiple requests to the server and all reqs work well, but one causes an error.
Responses of all requests are the same

internal/assert.js: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

    at assert (internal/assert.js:14:11)
    at TLSSocket.socketOnData (_http_client.js:511:3)
    at TLSSocket.emit (events.js:327:22)
    at addChunk (_stream_readable.js:305:12)
    at readableAddChunk (_stream_readable.js:281:9)
    at TLSSocket.Readable.push (_stream_readable.js:220:10)
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:191:23) {
  code: 'ERR_INTERNAL_ASSERTION'
}
self.res = { _headers: options.headers,headers: res.headers, data: [], url: options.url, httpVersion: self.sessions[options.origin].version};
res.on('data', function (chunk) {
	self.res.data.push(chunk);
});
res.on('end', () =>Promise.all([self.decodeReseponse(), self.setCookies()]).then(() => resolve(self.res)));

Activity

  1. hnviradiya commented on Aug 25, 2021

    @hnviradiya

    We are also facing this in 12.x (we are using AWS lambda), we have so many requests and this occurs around 30% of requests.

  2. Trott commented on Aug 30, 2021

    @Trott
    Member

    I'm going to close this and point people to nodejs/node#35384. (@gondone666 If you are still experiencing this and are able to share your code so the core team can figure out what's going on, please comment in that issue. Thanks!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions