Title: RangeError: Maximum call stack size exceeded in @sentry/remix server instrumentation · Issue #16075 · getsentry/sentry-javascript · GitHub
Open Graph Title: RangeError: Maximum call stack size exceeded in @sentry/remix server instrumentation · Issue #16075 · getsentry/sentry-javascript
X Title: RangeError: Maximum call stack size exceeded in @sentry/remix server instrumentation · Issue #16075 · 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/16075
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RangeError: Maximum call stack size exceeded in @sentry/remix server instrumentation","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?\n\n@sentry/remix\n\n### SDK Version\n\n9.12.0\n\n### Framework Version\n\nRemix 2.16.5\n\n### Link to Sentry event\n\n_No response_\n\n### Reproduction Example/SDK Setup\n\n\n```js\nimport * as Sentry from \"@sentry/remix\";\n\nconst { SENTRY_DSN, ENVIRONMENT, NODE_ENV } = process.env;\n\nif (NODE_ENV === \"production\") {\n\tconsole.info(\"Initializing Sentry\");\n\tSentry.init({\n\t\tdsn: SENTRY_DSN,\n\t\ttracesSampleRate: 0.3,\n\t\tprofilesSampleRate: 0.1,\n\t\tautoInstrumentRemix: true,\n\t\tenvironment: ENVIRONMENT,\n\t\tsendDefaultPii: true,\n integrations: [nodeProfilingIntegration(), Sentry.prismaIntegration()],\n\t\tbeforeSendTransaction: (transaction) => {\n\t\t\tif (transaction.request?.url.endsWith(\"js.map\")) return null;\n\t\t\treturn transaction;\n\t\t},\n\t\tignoreTransactions: [\"healthcheck\"],\n\t});\n}\n```\n\nEnvironment\nNode.js: v20.19.0\nSentry Remix SDK version: 9.12.0\nUsing ZenStack enhanced Prisma client\nUsing pnpm package manager\n\n### Steps to Reproduce\n\n1. Set up a Remix application with Sentry integration\n2. Configure Sentry server instrumentation in instrument.server.mjs\n3. Run the application under load or for an extended period\n4. Observe that occasionally the server crashes with the following error:\n```\n/myapp/node_modules/.pnpm/@sentry+remix@9.12.0_@opentelemetry+context-async-hooks@1.30.1_@opentelemetry+api@1.9.0__@ope_uinifbjcggxueklhweoo2zo2yi/node_modules/@sentry/remix/build/cjs/server/instrumentServer.js:167\n return async function ( args) {\n ^\nRangeError: Maximum call stack size exceeded\n```\n\n### Expected Result\n\nNo crash.\n\n### Actual Result\n\nCrash.","author":{"url":"https://github.com/badeleux","@type":"Person","name":"badeleux"},"datePublished":"2025-04-16T09:42:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/16075"}
| 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:17493a9b-23bb-30ea-d446-7e62675eb712 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2C6:2280D4:227E3B:2D88F4:6B075F6B |
| html-safe-nonce | be6d37be7ab9ae8a2ab527de763ed971906dd8166a7e47c8712be800f07608c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkM2OjIyODBENDoyMjdFM0I6MkQ4OEY0OjZCMDc1RjZCIiwidmlzaXRvcl9pZCI6IjkxNzk1ODM5NTgwMDk0NzA4MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 40991ceb5df1a0510a5262f169020099761d51cad6537d7e431f16182c6de8a6 |
| hovercard-subject-tag | issue:2999075604 |
| 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/16075/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d482c3eb8697e9ac0752e7ad2826c7a44398fa29f519221dc85090a81bc62c1f/getsentry/sentry-javascript/issues/16075 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d482c3eb8697e9ac0752e7ad2826c7a44398fa29f519221dc85090a81bc62c1f/getsentry/sentry-javascript/issues/16075 |
| 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 | badeleux |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82 |
| 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 | bd845eb7947c1ed8c850f7ab415a51339d162de3 |
| 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