Title: Extremely long delays when reporting errors with a long message · Issue #2286 · getsentry/sentry-javascript · GitHub
Open Graph Title: Extremely long delays when reporting errors with a long message · Issue #2286 · getsentry/sentry-javascript
X Title: Extremely long delays when reporting errors with a long message · Issue #2286 · getsentry/sentry-javascript
Description: Package + Version @sentry/browser Version: 5.6.3 Description I'm using mobx-state-tree, which generates very long error messages, when trying to instantiate a model with data that doesn't match the defined schema. It appends a full dump ...
Open Graph Description: Package + Version @sentry/browser Version: 5.6.3 Description I'm using mobx-state-tree, which generates very long error messages, when trying to instantiate a model with data that doesn't match the...
X Description: Package + Version @sentry/browser Version: 5.6.3 Description I'm using mobx-state-tree, which generates very long error messages, when trying to instantiate a model with data that doesn't m...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/2286
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extremely long delays when reporting errors with a long message","articleBody":"## Package + Version\r\n\r\n```\r\n@sentry/browser\r\n```\r\n\r\n### Version:\r\n\r\n```\r\n5.6.3\r\n```\r\n\r\n## Description\r\n\r\nI'm using `mobx-state-tree`, which generates **very** long error messages, when trying to instantiate a model with data that doesn't match the defined schema.\r\n\r\nIt appends a full dump of the the data to the message, among other things.\r\n\r\nI've seen it generate a 300kB message from a 10kB JSON payload.\r\n\r\nWhen calling `Sentry.captureException(error)`, I notice delays around ~90s.\r\n\r\nThe issue seems to originate from Tracekit, and particularly from a [RegExp which is ran on each line of the stacktrace](https://github.com/getsentry/sentry-javascript/blame/edd08f9fa4e4c387ed9c3ba2500119c78e67be15/packages/raven-js/vendor/TraceKit/tracekit.js#L390) (which includes the message).\r\n\r\n---\r\n\r\nI've also [opened an issue on Tracekit repo](https://github.com/csnover/TraceKit/issues/76). I opened one here too, because the dependency is duplicated in your repo too.\r\n","author":{"url":"https://github.com/rgehan","@type":"Person","name":"rgehan"},"datePublished":"2019-10-23T14:53:11Z","url":"https://github.com/getsentry/sentry-javascript/issues/2286"}
| 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:cd408842-a979-607e-0e07-cac9a105070c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB06:8414A:8CC9FD:C4BEDC:6B0428B0 |
| html-safe-nonce | 7eab66464c044bf3d3d2283ffefd8b8b7a718291109808e07e3418298a618b51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjA2Ojg0MTRBOjhDQzlGRDpDNEJFREM6NkIwNDI4QjAiLCJ2aXNpdG9yX2lkIjoiNjQ3MzYxMTExMTI3NTk0NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4db9ca6345d5610e22e07268f6fe12f1dc55eb9b4e17b43882c8bc734f650090 |
| hovercard-subject-tag | issue:511379192 |
| 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/2286/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6069d412e0cc24998a0c8eb62d9da50ffcbd2c7017fce03a874a9422794236cc/getsentry/sentry-javascript/issues/2286 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6069d412e0cc24998a0c8eb62d9da50ffcbd2c7017fce03a874a9422794236cc/getsentry/sentry-javascript/issues/2286 |
| og:image:alt | Package + Version @sentry/browser Version: 5.6.3 Description I'm using mobx-state-tree, which generates very long error messages, when trying to instantiate a model with data that doesn't match the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rgehan |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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