Title: tRPC server errors not sent from vercel deployment. Local works fine · Issue #17024 · getsentry/sentry-javascript · GitHub
Open Graph Title: tRPC server errors not sent from vercel deployment. Local works fine · Issue #17024 · getsentry/sentry-javascript
X Title: tRPC server errors not sent from vercel deployment. Local works fine · Issue #17024 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17024
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tRPC server errors not sent from vercel deployment. Local works fine","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues [https://github.com/getsentry/sentry-javascript/issues](\u003chttps://github.com/getsentry/sentry-javascript/issues>)\n- [X] I have reviewed the documentation [https://docs.sentry.io/](\u003chttps://docs.sentry.io/>)\n- [X] I am using the latest SDK release [https://github.com/getsentry/sentry-javascript/releases](\u003chttps://github.com/getsentry/sentry-javascript/releases>)\n\n### How do you use Sentry?\n\nSentry Saas ([sentry.io](\u003chttp://sentry.io>))\n\n### Which SDK are you using?\n\n@sentry/nextjs\n\n### SDK Version\n\n9.38.0\n\n### Framework Version\n\n15.4.1\n\n### Link to Sentry event\n\n*No response*\n\n### Reproduction Example/SDK Setup\n\n[https://github.com/studie-tech/TheNinjaRPG](\u003chttps://github.com/studie-tech/TheNinjaRPG>)\n\nI believe the most relevant files are:\n\n```\nhttps://github.com/studie-tech/TheNinjaRPG/blob/main/app/instrumentation.ts\nhttps://github.com/studie-tech/TheNinjaRPG/blob/main/app/sentry.server.config.ts\nhttps://github.com/studie-tech/TheNinjaRPG/blob/main/app/src/app/api/trpc/%5Btrpc%5D/route.ts\n```\n\nSpecifically, I have implemented `Sentry.flush` as I thought that was the most likely culprit, but to no avail.\n\n### Steps to Reproduce\n\nWhenever I trigger an error in a tRPC endpoint on purpose, I get the error when working from local, but not when deployed on vercel. The full configuration can be seen here:\u003cbr>[studie-tech/TheNinjaRPG](\u003chttps://github.com/studie-tech/TheNinjaRPG?rgh-link-date=2025-07-15T14%3A49%3A05.000Z>)\n\nI'm not using environment variables for the DSN, which seems to be a common cause of this. I've gone through the entire setup of Sentry again.\n\nThis worked a few months ago when initially set up, but has since then been broken.\n\n### Expected Result\n\nExpect similar behavior on local and vercel deployment\n\n### Actual Result\n\nNo errors reported from vercel","author":{"url":"https://github.com/MathiasGruber","@type":"Person","name":"MathiasGruber"},"datePublished":"2025-07-15T16:00:22Z","url":"https://github.com/getsentry/sentry-javascript/issues/17024"}
| 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:8ebffffd-e5df-8c76-ffdf-309311aca410 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B38A:29FA86:1C03D6:25EE82:6B0437FA |
| html-safe-nonce | 92761d6a9fb82889247ae41a220788e9df5050dc087b650cccbd93b37cb4f1d9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzhBOjI5RkE4NjoxQzAzRDY6MjVFRTgyOjZCMDQzN0ZBIiwidmlzaXRvcl9pZCI6IjI2NjE4NTIzMzA0ODM1Mjk3MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a0d1ac712c2d9807473645a66e096495b3b290ca4970764d7055ca6aa3e261cd |
| hovercard-subject-tag | issue:3232838755 |
| 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/17024/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5327ff6f4d79e422765ed78f0c4479d3e87eb618e244567ffe2387f64775c99/getsentry/sentry-javascript/issues/17024 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5327ff6f4d79e422765ed78f0c4479d3e87eb618e244567ffe2387f64775c99/getsentry/sentry-javascript/issues/17024 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MathiasGruber |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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