Title: RangeError: The value of "offset" is out of range (ANR) · Issue #9307 · getsentry/sentry-javascript · GitHub
Open Graph Title: RangeError: The value of "offset" is out of range (ANR) · Issue #9307 · getsentry/sentry-javascript
X Title: RangeError: The value of "offset" is out of range (ANR) · Issue #9307 · 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/9307
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RangeError: The value of \"offset\" is out of range (ANR)","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/node\r\n\r\n### SDK Version\r\n\r\n 7.74.0\r\n\r\n### Framework Version\r\n\r\nNode v18.17.1\r\n\r\n### SDK Setup\r\n\r\nANR is enabled with these settings:\r\n```typescript\r\nSentry.enableAnrDetection({\r\n captureStackTrace: true,\r\n anrThreshold: 1000,\r\n});\r\n```\r\n\r\n### Steps to Reproduce\r\n\r\nWe enabled ANR a few days ago and this error just popped up. Not sure how to reproduce.\r\n\r\n### Expected Result\r\n\r\n`RangeError` should not be raised or reported. \r\n\r\n### Actual Result\r\n\r\nSentry reported an issue that seems to originate from Sentry ANR related code:\r\n```\r\nRangeError: The value of \"offset\" is out of range. It must be >= 0 and \u003c= 0. Received 1\r\n File \"node:internal/errors\", line 405, col 5, in new NodeError\r\n File \"node:internal/buffer\", line 88, col 9, in boundsError\r\n File \"node:internal/buffer\", line 254, col 5, in Buffer.readUInt8\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 83, col 29, in parseFrame\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 254, col 19, in WebSocketInterface._addBuffer\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 226, col 16, in WebSocketInterface._completeFrame\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 258, col 12, in WebSocketInterface._addBuffer\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 226, col 16, in WebSocketInterface._completeFrame\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 258, col 12, in WebSocketInterface._addBuffer\r\n File \"app:///../node_modules/@sentry/node/cjs/anr/websocket.js\", line 226, col 16, in WebSocketInterface._completeFrame\r\n```","author":{"url":"https://github.com/ollipa","@type":"Person","name":"ollipa"},"datePublished":"2023-10-19T07:06:19Z","url":"https://github.com/getsentry/sentry-javascript/issues/9307"}
| 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:36ed626c-56e6-c730-2381-6973525186ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC90:1FAD:18F7B58:21B99B5:6B0406C7 |
| html-safe-nonce | 42a5caaa9674d1907743d69827cbdd52d914f2b74fa187660a850121a74fce03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzkwOjFGQUQ6MThGN0I1ODoyMUI5OUI1OjZCMDQwNkM3IiwidmlzaXRvcl9pZCI6IjIwNjkwODc3ODc4MzUxOTcxMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 785f6bc538379b0a180193b9ae6e53f5ec4d71db41a62bea3a61d3377699edbd |
| hovercard-subject-tag | issue:1951447365 |
| 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/9307/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c800c1cb18a267609e3e93ac0fc5a01a921edcab96be99fb20771461e5fb94c7/getsentry/sentry-javascript/issues/9307 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c800c1cb18a267609e3e93ac0fc5a01a921edcab96be99fb20771461e5fb94c7/getsentry/sentry-javascript/issues/9307 |
| 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 | ollipa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| 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