-
-
Notifications
You must be signed in to change notification settings - Fork 754
nock 14 regression: GET with body causes Uncaught Invariant Violation #2826
Copy link
Copy link
Closed
mswjs/interceptors
#715Labels
Description
Nock Version
14
Node Version
22
What happened?
Looks like nock 14 introduces "@mswjs/interceptors": "^0.37.3". Unfortunately, I am now getting
Uncaught Invariant Violation: Failed to write to a request stream: stream does not exist
at Object.write (node_modules/@mswjs/interceptors/lib/node/chunk-4IGRW7SK.js:287:30)
at MockHttpSocket.write (node_modules/@mswjs/interceptors/lib/node/chunk-4IGRW7SK.js:64:18)
at ClientRequest._flushOutput (node:_http_outgoing:1221:18)
at ClientRequest._flush (node:_http_outgoing:1197:22)
at onSocketNT (node:_http_client:921:9)
at process.processTicksAndRejections (node:internal/process/task_queues:91:21)
which this ticket might be related.
I am trying to update nock to version 14 for this test library. Due to the complexity of the library, it will take me some time to create a minimal reproduction.
I will update this ticket when I have more details, but in the meantime maybe someone already knows what is going on.
Cheers
Reactions are currently unavailable