Skip to content

unhandledRejection: ResponseAborted error when using SSE and App Router #61972

Discussion options

You must be logged in to vote

Sorry to hear it's not working for you. In my case I'm using this to read data from Kafka with KafkaJS and req.signal.abort solved it for me.

If you're still getting "WritableStream is closed" errors, in my mind that could mean that the process that tries to write to the stream does not close properly in the req.signal.abort block, that used to be the issue for me during development.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@DiskCrasher
Comment options

@joeschoe
Comment options

@DiskCrasher
Comment options

@evakkuri
Comment options

Answer selected by DiskCrasher
@DiskCrasher
Comment options

@evakkuri
Comment options

@joeschoe
Comment options

@mozeryansky
Comment options

Comment options

You must be logged in to vote
2 replies
@evakkuri
Comment options

@joeschoe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants