Skip to content

Uncaught errors during _read() #698

Closed
@mitchmcdee

Description

@mitchmcdee

_read() is async but ReadableStream expects it to be synchronous (i.e. it is never awaited) which results in uncaught errors e.g. if this.reader.read() throws an error it will never be caught. This was happening for me when reader.read() was throwing network errors.

https://nodejs.org/dist/v18.0.0/docs/api/stream.html#errors-while-reading for additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions