Skip to content

Failed renders: HTTPTransport ignores response.ok, queued renders reject unhandled #9

Description

@myabc

Found while piloting live_component 0.4.0 (opf/openproject#24442)

Failed renders surface poorly on the HTTP path: HTTPTransport never checks response.ok, so an error page is decoded and handed to the morph as if it were component HTML; and renders queued through LiveController#render re-reject from the task queue's drain() with nothing catching, producing unhandled promise rejections. The error dialog only serves element-level renders.

Suggested fixes: map non-2xx to the error path in HTTPTransport; route queued-render failures into the same error dialog (or document that callers must .catch).

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