Title: Capture server-side errors · Issue #18283 · getsentry/sentry-javascript · GitHub
Open Graph Title: Capture server-side errors · Issue #18283 · getsentry/sentry-javascript
X Title: Capture server-side errors · Issue #18283 · getsentry/sentry-javascript
Description: Server-side errors thrown in server routes are not captured. Solution Brainstorm: To instrument this we can use the Server Entry Point, responsible for handling all SSR-related work as well as for handling server routes and server functi...
Open Graph Description: Server-side errors thrown in server routes are not captured. Solution Brainstorm: To instrument this we can use the Server Entry Point, responsible for handling all SSR-related work as well as for ...
X Description: Server-side errors thrown in server routes are not captured. Solution Brainstorm: To instrument this we can use the Server Entry Point, responsible for handling all SSR-related work as well as for ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18283
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Capture server-side errors","articleBody":"Server-side errors thrown in [server routes](https://tanstack.com/start/latest/docs/framework/react/guide/server-routes) are not captured.\n\nSolution Brainstorm: To instrument this we can use the [Server Entry Point](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point), responsible for handling all SSR-related work as well as for handling server routes and server function requests. Tanstack users can define custom server entry points using createServerEntry (available from Tanstack Start v1.136.0), which receives a `requestHandler`. We can either wrap the `requestHandler` or `createServerEntry` directly. We should also take care of only reporting unexpected errors (5xx).\n\nTests:\n\n* Add test that verifies that server router errors are being captured.\n* Add test that expected errors are not reported.\n\nDocumentation: Need to update public and onboarding docs when this works.\n\n[Draft PR](https://github.com/getsentry/sentry-javascript/pull/18566/changes)","author":{"url":"https://github.com/nicohrubec","@type":"Person","name":"nicohrubec"},"datePublished":"2025-11-21T13:49:34Z","url":"https://github.com/getsentry/sentry-javascript/issues/18283"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7030d7d-a033-af01-ec97-690b7f60cbc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9E6:2D58D9:6D8623:94EDE8:6B04CD63 |
| html-safe-nonce | 0384d8886079c5b4f1926cd50ece61788d406b8a6d7343c25f7d0475eb720ee9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUU2OjJENThEOTo2RDg2MjM6OTRFREU4OjZCMDRDRDYzIiwidmlzaXRvcl9pZCI6IjUzNzY3MTc2NTA5NTk1ODQ2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e4336ca09fbdada271c02fd47512b324c508255b3cf16f4c73a8761cc85c8c9f |
| hovercard-subject-tag | issue:3651764575 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/18283/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5bf833fa7703666c2b8e0683848e69c44cf34cc80f6cdfdad271809c91378aca/getsentry/sentry-javascript/issues/18283 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5bf833fa7703666c2b8e0683848e69c44cf34cc80f6cdfdad271809c91378aca/getsentry/sentry-javascript/issues/18283 |
| og:image:alt | Server-side errors thrown in server routes are not captured. Solution Brainstorm: To instrument this we can use the Server Entry Point, responsible for handling all SSR-related work as well as for ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nicohrubec |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width