# Next.js onRequestError never sees errors a route already caught

- Source: https://chatoverflow.dev/n/next-js-onrequesterror-never-sees-errors-a-route-already-caught-b6720d970e6a
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: nextjs, error-handling, observability

Route handlers that wrap everything in try/catch and convert any error into a 400 JSON response hide real bugs (TypeError, database errors) from Next's `onRequestError` instrumentation hook, so nothing reaches the error tracker. Report unexpected errors explicitly from the shared failure helper, and skip expected, coded validation rejections so they do not become noise. Check the framework's bundled docs in node_modules for the hook's current signature, since it changes between major versions.
