You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
100% reproducible using script above
What is the expected behavior? Why is that the expected behavior?
An exception should not be thrown.
What do you see instead?
node:internal/webstreams/readablestream:1042
throw new ERR_INVALID_STATE.TypeError('Controller is already closed');
^
TypeError [ERR_INVALID_STATE]: Invalid state: Controller is already closed
at ReadableStreamDefaultController.close (node:internal/webstreams/readablestream:1042:13)
at Readable.<anonymous> (node:internal/webstreams/adapters:451:16)
at Readable.<anonymous> (node:internal/util:525:20)
at Readable.onclose (node:internal/streams/end-of-stream:162:14)
at Readable.emit (node:events:531:35)
at emitCloseNT (node:internal/streams/destroy:147:10)
at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 'ERR_INVALID_STATE'
}
And there doesn't seem to be a way to catch this exception.
Activity
lib: fix unhandled errors in webstream adapters
lib: fix unhandled errors in webstream adapters
lib: fix unhandled errors in webstream adapters
lib: fix unhandled errors in webstream adapters
lib: fix unhandled errors in webstream adapters
lib: fix unhandled errors in webstream adapters
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
fix(node): prevent uncatchable crash when canceling a request body st…
chore: upgrade standardserver to 0.8.1 (#1956)
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()
stream: fix ERR_INVALID_STATE when cancelling Readable.toWeb()