Closed ukstv closed 2 months ago
Disposition:
fetch().response.body.getReader()
reader.cancel()
Expectation: things are working well Reality:
TypeError: Response body object should not be disturbed or locked
The reproduction repository is on https://github.com/ukstv/hono-sse-repro
The error is from Readable.toWeb(incoming) line. It fails because incoming is "disturbed". That is kind of expected though, as the request got aborted.
Readable.toWeb(incoming)
incoming
Hi @ukstv
Sorry for the late reply. This maybe fixed the latest version. Can you try it?
@yusukebe It works! Thank you!
Disposition:
fetch().response.body.getReader()
Readerreader.cancel()
,Expectation: things are working well Reality:
TypeError: Response body object should not be disturbed or locked
:(The reproduction repository is on https://github.com/ukstv/hono-sse-repro
The error is from
Readable.toWeb(incoming)
line. It fails becauseincoming
is "disturbed". That is kind of expected though, as the request got aborted.