Title: Stacktraces not source mapped after upgrading from 7.26 to 7.42 (Next.js assetPrefix) · Issue #7500 · getsentry/sentry-javascript · GitHub
Open Graph Title: Stacktraces not source mapped after upgrading from 7.26 to 7.42 (Next.js assetPrefix) · Issue #7500 · getsentry/sentry-javascript
X Title: Stacktraces not source mapped after upgrading from 7.26 to 7.42 (Next.js assetPrefix) · Issue #7500 · 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/7500
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stacktraces not source mapped after upgrading from 7.26 to 7.42 (Next.js assetPrefix)","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using? If you use the CDN bundles, please specify the exact bundle (e.g. `bundle.tracing.min.js`) in your SDK setup.\n\n@sentry/nextjs\n\n### SDK Version\n\n7.42.0\n\n### Framework Version\n\nNext.js 12.3.2\n\n### Link to Sentry event\n\nhttps://grid.sentry.io/issues/3671197832/events/004e5ad1ed91484f92e601c6c5f13b83/?project=1871088\n\n### SDK Setup\n\nClient config\r\n```javascript\r\nSentry.init({\r\n enabled: isEnabled,\r\n dsn: SENTRY_DSN,\r\n environment: SENTRY_ENV,\r\n release: BUILD_ID,\r\n ignoreErrors,\r\n beforeSend: event => {\r\n const { type, title, contexts } = event;\r\n if (type === 'error' &&\r\n /^(?:iPhone|Mac|iPad)$/.test(contexts?.device?.family || '') &&\r\n (\r\n /^TypeError: (?:cancelled|geannuleerd|cancelado|annulleret|avbrutt|avbruten|Abgebrochen)$/i.test(title || '')\r\n )) {\r\n return null;\r\n }\r\n\r\n integrateWithFullstory(event);\r\n return event;\r\n },\r\n integrations: [\r\n new Integrations.BrowserTracing({\r\n tracingOrigins: [ getApiHost() ],\r\n beforeNavigate: context => {\r\n const dynamicRouteName = mapSlugToRoute(window.location.pathname);\r\n if (dynamicRouteName) {\r\n return {\r\n ...context, name: dynamicRouteName,\r\n };\r\n }\r\n return context;\r\n },\r\n }),\r\n ]\r\n .filter(Boolean),\r\n tracesSampler: samplingRate,\r\n});\r\n```\r\n\r\nServer config\r\n```javascript\r\nimport * as Sentry from '@sentry/nextjs';\r\nSentry.init({\r\n enabled: process.env.NODE_ENV === 'production',\r\n environment: SENTRY_ENV,\r\n dsn: SENTRY_DSN,\r\n release: BUILD_ID,\r\n tracesSampleRate: 0,\r\n});\r\n```\n\n### Steps to Reproduce\n\nWe recently updated the following sentry packages from version 7.26 to 7.42:\r\n\r\n - @sentry/nextjs\r\n - @sentry/tracing\r\n - @sentry/utils\r\n\r\nWe have a Next.js application that has an asset prefix defined as `/_client`\r\nThe sourcemaps are uploaded to Sentry at build time from CircleCI. The source maps are **not** included in the docker image that we then later deploy.\n\n### Expected Result\n\nStack traces show original, unminified JavaScript/TypeScript code.\n\n### Actual Result\n\nStack traces show minified code.\r\n\r\nUsing the `sentry-cli` tool to investigate, it appears as if the assetPrefix is causing a mismatch.\r\n\u003cimg width=\"943\" alt=\"Screenshot 2023-03-16 at 17 03 07\" src=\"https://user-images.githubusercontent.com/50045006/225889300-fc2122ba-5d0f-4dcf-87bd-c5119d06653a.png\">\r\n\r\nWe have downgraded back to 7.26 and can verify that source maps are working again after doing so.","author":{"url":"https://github.com/eirikur-grid","@type":"Person","name":"eirikur-grid"},"datePublished":"2023-03-17T11:22:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/7500"}
| 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:6d98a937-beb7-1a20-0aeb-314adcff9b3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECAA:31FAF9:4078B:5A444:6B04A2E4 |
| html-safe-nonce | 5636292b0b89dbe5cf8af73aa1a562e4b62771d6f2a43d315c41c36caa671d06 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0FBOjMxRkFGOTo0MDc4Qjo1QTQ0NDo2QjA0QTJFNCIsInZpc2l0b3JfaWQiOiIyODMwODQ3OTA3NjIyODU1Mzk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3e3572ed0e0e757f076257a4378e0982615959b409c73d248160b0c7dbbc29be |
| hovercard-subject-tag | issue:1629143475 |
| 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/7500/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e6fde583a0b1f2950abf45f53e24e044d859037c6b6c630e2ce2fa002047901/getsentry/sentry-javascript/issues/7500 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e6fde583a0b1f2950abf45f53e24e044d859037c6b6c630e2ce2fa002047901/getsentry/sentry-javascript/issues/7500 |
| 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 | eirikur-grid |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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