Skip to content

Handle async errors in serveRequests calls #1418

@annagrin

Description

@annagrin

Dwds and webdev call serveRequests in multiple places. This API does not run its code in a runZonedGuarded if there is another zone in the call chain, which changes the logic of the calling code. Also, would help diagnose problems if the call was wrapped in Chain.capture to provide all async traces on exception:

See discussion in dart-lang/shelf#202
See similar issue dart-lang/build#3196
See similar issue flutter/devtools#3415

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions