René's URL Explorer Experiment


Title: Crash on server side running on Vercel after upgrading to Next.js 12 · Issue #4103 · getsentry/sentry-javascript · GitHub

Open Graph Title: Crash on server side running on Vercel after upgrading to Next.js 12 · Issue #4103 · getsentry/sentry-javascript

X Title: Crash on server side running on Vercel after upgrading to Next.js 12 · Issue #4103 · getsentry/sentry-javascript

Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...

Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4103

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash on server side running on Vercel after upgrading to Next.js 12","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [x] other: `@sentry/nextjs`\r\n\r\n### Version:\r\n\r\n```\r\n6.13.3\r\n```\r\n\r\n## Description\r\n\r\nAfter upgrading a project from Next 11.1.2 to 12.0.1, the Next.js-powered API endpoints start to crash, as in https://drafted-webapp-hmopbeh9f-davidguijarro.vercel.app/api/status.\r\n\r\nHere's a sample log of the error:\r\n\r\n```\r\n[GET] /api/status\r\n09:32:11:52\r\n2021-10-29T07:32:12.548Z\t1c5c0769-4fd8-4480-8b9a-08598598cd1f\tERROR\tError: Cannot find module './browser'\r\nRequire stack:\r\n- /var/task/node_modules/@sentry/tracing/dist/index.js\r\n- /var/task/node_modules/@sentry/node/dist/handlers.js\r\n- /var/task/node_modules/@sentry/node/dist/index.js\r\n- /var/task/node_modules/@sentry/nextjs/dist/index.server.js\r\n- /var/task/.next/server/pages/api/status.js\r\n- /var/task/node_modules/next/dist/server/next-server.js\r\n- /var/task/___next_launcher.js\r\n- /var/runtime/UserFunction.js\r\n- /var/runtime/index.js\r\n    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:745:27)\r\n    at Module.require (internal/modules/cjs/loader.js:961:19)\r\n    at require (internal/modules/cjs/helpers.js:92:18)\r\n    at Object.\u003canonymous> (/var/task/node_modules/@sentry/tracing/dist/index.js:3:17)\r\n    at Module._compile (internal/modules/cjs/loader.js:1072:14)\r\n    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)\r\n    at Module.load (internal/modules/cjs/loader.js:937:32)\r\n    at Function.Module._load (internal/modules/cjs/loader.js:778:12)\r\n    at Module.require (internal/modules/cjs/loader.js:961:19) {\r\n  code: 'MODULE_NOT_FOUND',\r\n  requireStack: [\r\n    '/var/task/node_modules/@sentry/tracing/dist/index.js',\r\n    '/var/task/node_modules/@sentry/node/dist/handlers.js',\r\n    '/var/task/node_modules/@sentry/node/dist/index.js',\r\n    '/var/task/node_modules/@sentry/nextjs/dist/index.server.js',\r\n    '/var/task/.next/server/pages/api/status.js',\r\n    '/var/task/node_modules/next/dist/server/next-server.js',\r\n    '/var/task/___next_launcher.js',\r\n    '/var/runtime/UserFunction.js',\r\n    '/var/runtime/index.js'\r\n  ]\r\n}\r\nRequestId: 1c5c0769-4fd8-4480-8b9a-08598598cd1f Error: Runtime exited with error: exit status 1\r\nRuntime.ExitError\r\n```\r\n\r\nWeird enough, this only happens when deployed to Vercel, not when running on local. \r\n\r\nI also confirmed that completely removing Sentry from the project solves the issue.","author":{"url":"https://github.com/davguij","@type":"Person","name":"davguij"},"datePublished":"2021-10-29T07:34:07Z","url":"https://github.com/getsentry/sentry-javascript/issues/4103"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:78c64bbc-fa7f-074d-19a2-cf5392fb82f2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA930:1C8FCC:1B30AD:249214:6B043844
html-safe-noncee0ce4c0a55f7ef3d332b5e28b5da5141746adc21a0a3ef5f4c4c8e9a961b342b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTMwOjFDOEZDQzoxQjMwQUQ6MjQ5MjE0OjZCMDQzODQ0IiwidmlzaXRvcl9pZCI6IjI3NDczNjU0NTU3NjQ0MDQyOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac018a1b5a8a39207229cd36e7a14786bca47368246e0d677465a8cf1fdd95aee5
hovercard-subject-tagissue:1039257192
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/4103/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b6226b289f43055b01e7fb8a27883604c64d3ee290a51319bda250d6fbf3aacc/getsentry/sentry-javascript/issues/4103
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b6226b289f43055b01e7fb8a27883604c64d3ee290a51319bda250d6fbf3aacc/getsentry/sentry-javascript/issues/4103
og:image:altReview the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedavguij
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/4103#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4103
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4103
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4103
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4103
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4103
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4103
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4103
#4255https://github.com/getsentry/sentry-javascript/pull/4255
Crash on server side running on Vercel after upgrading to Next.js 12https://github.com/getsentry/sentry-javascript/issues/4103#top
#4255https://github.com/getsentry/sentry-javascript/pull/4255
Next.js 12 Supporthttps://github.com/getsentry/sentry-javascript/milestone/9
https://github.com/davguij
davguijhttps://github.com/davguij
on Oct 29, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issue-1039257192
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://drafted-webapp-hmopbeh9f-davidguijarro.vercel.app/api/statushttps://drafted-webapp-hmopbeh9f-davidguijarro.vercel.app/api/status
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 29, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5538777772
https://github.com/tonimasc
tonimaschttps://github.com/tonimasc
on Oct 29, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-954629760
https://github.com/atilafassina
atilafassinahttps://github.com/atilafassina
on Oct 29, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-954805682
output-file-tracinghttps://nextjs.org/docs/advanced-features/output-file-tracing
smeubankhttps://github.com/smeubank
Package: nextjshttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20nextjs%22
on Nov 3, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5561543901
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Nov 3, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5561543967
https://github.com/sanderkooger
sanderkoogerhttps://github.com/sanderkooger
on Nov 5, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-962114771
https://github.com/cezarneaga
cezarneagahttps://github.com/cezarneaga
on Nov 8, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-963049038
https://github.com/dcastil
dcastilhttps://github.com/dcastil
on Nov 8, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-963223150
Ensure withSentry reports API (serverless) errors from Vercel #4044https://github.com/getsentry/sentry-javascript/pull/4044
fix(nextjs): Delay error propagation until withSentry is done #4027https://github.com/getsentry/sentry-javascript/pull/4027
bamdadfrhttps://github.com/bamdadfr
on Nov 11, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5605238154
fix: disable output file tracing to prevent sentry package from crash…https://github.com/bamdadfr/screwmycode-in--www/commit/a054bf5c47a86b45b545433beee95efee695528e
a054bf5https://github.com/bamdadfr/screwmycode-in--www/commit/a054bf5c47a86b45b545433beee95efee695528e
https://github.com/DavidChouinard
DavidChouinardhttps://github.com/DavidChouinard
on Nov 16, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-970643859
@davguijhttps://github.com/davguij
#4027https://github.com/getsentry/sentry-javascript/pull/4027
@cezarneagahttps://github.com/cezarneaga
@sanderkoogerhttps://github.com/sanderkooger
https://github.com/cezarneaga
cezarneagahttps://github.com/cezarneaga
on Nov 16, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-970702732
https://github.com/bnjmnt4n
bnjmnt4nhttps://github.com/bnjmnt4n
on Nov 17, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-971193298
#4027https://github.com/getsentry/sentry-javascript/pull/4027
comment from the Next.js maintainerhttps://github.com/vercel/next.js/discussions/30137#discussioncomment-1538436
importing a reference to nexthttps://github.com/getsentry/sentry-javascript/blob/922562f8381b2308d50851952583ae31f40f572b/packages/nextjs/src/utils/instrumentServer.ts#L14
https://github.com/davguij
davguijhttps://github.com/davguij
on Nov 17, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-971347629
@DavidChouinardhttps://github.com/DavidChouinard
@bnjmnt4nhttps://github.com/bnjmnt4n
https://github.com/felixmeziere
felixmezierehttps://github.com/felixmeziere
on Nov 17, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-971741199
https://github.com/Ryuurock
Ryuurockhttps://github.com/Ryuurock
on Nov 18, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-972436930
https://github.com/IHIutch
IHIutchhttps://github.com/IHIutch
on Nov 18, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-972456873
https://github.com/sanderkooger
sanderkoogerhttps://github.com/sanderkooger
on Nov 20, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-974652433
@davguijhttps://github.com/davguij
#4027https://github.com/getsentry/sentry-javascript/pull/4027
@cezarneagahttps://github.com/cezarneaga
@sanderkoogerhttps://github.com/sanderkooger
https://github.com/IGUNUBLUE
IGUNUBLUEhttps://github.com/IGUNUBLUE
on Nov 24, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-978026800
output-file-tracinghttps://nextjs.org/docs/advanced-features/output-file-tracing
https://github.com/dcastil
dcastilhttps://github.com/dcastil
on Nov 24, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-978036147
@IGUNUBLUEhttps://github.com/IGUNUBLUE
smeubankhttps://github.com/smeubank
Next.js 12 Supporthttps://github.com/getsentry/sentry-javascript/milestone/9
on Nov 29, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5683532969
https://github.com/fungilation
fungilationhttps://github.com/fungilation
on Dec 1, 2021https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-983807842
iker-barriocanalhttps://github.com/iker-barriocanal
fix(nextjs): Disable server instrumentation on Vercel #4255https://github.com/getsentry/sentry-javascript/pull/4255
on Dec 10, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5746800170
iker-barriocanalhttps://github.com/iker-barriocanal
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#4255https://github.com/getsentry/sentry-javascript/pull/4255
on Dec 10, 2021https://github.com/getsentry/sentry-javascript/issues/4103#event-5747635099
https://github.com/gpichot
gpichothttps://github.com/gpichot
on May 12, 2022https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-1125050498
the documentationhttps://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
https://github.com/bigsee
bigseehttps://github.com/bigsee
on Oct 10, 2022https://github.com/getsentry/sentry-javascript/issues/4103#issuecomment-1273522752
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/4103
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4103
Next.js 12 Supporthttps://github.com/getsentry/sentry-javascript/milestone/9
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.