You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(remix): Complete Remix 3 server error handling
Covers the error paths the router middleware alone does not see, and
stops reporting things that are not faults.
`createRequestListener` in `@remix-run/node-fetch-server` is patched to
install an `onError` that chains to the app's own. This is the only hook
that covers an app whose fetch handler is not a router. It needs no abort
guard: the listener checks `isRequestAbortError` itself and returns before
calling `onError`.
The middleware captures too, so an event carries the route and request
already on the scope. That path does need the abort guard, because
`raceRequestAbort` rejects with `signal.reason` when the client
disconnects. Without it every user navigating away mid request creates an
issue. Removing the guard makes the new e2e test fail.
`shouldHandleError` follows `@sentry/hono`: skip 3xx and 4xx errors
carrying a numeric `status`, capture the rest.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
0 commit comments