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).
Found while piloting live_component 0.4.0 (opf/openproject#24442)
Failed renders surface poorly on the HTTP path:
HTTPTransportnever checksresponse.ok, so an error page is decoded and handed to the morph as if it were component HTML; and renders queued throughLiveController#renderre-reject from the task queue'sdrain()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).