Title: Errors aren't being reported in Next.js data-fetching methods on Vercel · Issue #6117 · getsentry/sentry-javascript · GitHub
Open Graph Title: Errors aren't being reported in Next.js data-fetching methods on Vercel · Issue #6117 · getsentry/sentry-javascript
X Title: Errors aren't being reported in Next.js data-fetching methods on Vercel · Issue #6117 · getsentry/sentry-javascript
Description: When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error. Steps to reproduce Have page with data fetcher and autoInstrumentServer...
Open Graph Description: When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error. Steps to reproduce Have page wi...
X Description: When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error. Steps to reproduce Have pag...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6117
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Errors aren't being reported in Next.js data-fetching methods on Vercel","articleBody":"When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error.\r\n\r\n## Steps to reproduce\r\n\r\n1. Have page with data fetcher and `autoInstrumentServerFunctions` (which is on by default):\r\n\r\n```ts\r\nconst MyComponent = () => {\r\n return \u003ch1>Hello World!\u003c/h1>;\r\n};\r\n\r\nexport const getServerSideProps = async (context) => {\r\n if (context.params?.myParam === \"two\") {\r\n // only throw conditionally so that this page actually builds\r\n throw new Error(\"We don't like page two!\");\r\n }\r\n\r\n return { props: {} };\r\n};\r\n\r\nexport default MyComponent;\r\n\r\n```\r\n\r\n2. Deploy to Vercel\r\n3. Open page\r\n4. Observe that no error has been reported to Sentry","author":{"url":"https://github.com/lforst","@type":"Person","name":"lforst"},"datePublished":"2022-11-02T14:13:02Z","url":"https://github.com/getsentry/sentry-javascript/issues/6117"}
| 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:940c9f25-0d81-ca73-507d-5d9ee9463526 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B86E:1CAB40:C08380:10D18EE:6B0438DF |
| html-safe-nonce | cb3a2a3f0b0770cffad64fa30594bfbd988a3e69b51309941456b5790343f6de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODZFOjFDQUI0MDpDMDgzODA6MTBEMThFRTo2QjA0MzhERiIsInZpc2l0b3JfaWQiOiI4ODc5MTYzODI0NzIxMzc3NTAzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9c05d26a963bacc56038617c711958935e63914065bfad1485feccce04b33851 |
| hovercard-subject-tag | issue:1433217268 |
| 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/6117/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb0f6d9f31114203705a8335f0c33efb6f474bcbc2858c727e9b12a1a04104e5/getsentry/sentry-javascript/issues/6117 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb0f6d9f31114203705a8335f0c33efb6f474bcbc2858c727e9b12a1a04104e5/getsentry/sentry-javascript/issues/6117 |
| og:image:alt | When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error. Steps to reproduce Have page wi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lforst |
| 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 | canary-1 |
| 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