Title: Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector. · Issue #6618 · getsentry/sentry-javascript · GitHub
Open Graph Title: Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector. · Issue #6618 · getsentry/sentry-javascript
X Title: Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector. · Issue #6618 · 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/6618
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector.","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 package are you using?\r\n\r\n@sentry/react (replay)\r\n\r\n### SDK Version\r\n\r\n7.27.0\r\n\r\n### Framework Version\r\n\r\nReact 16.14.0\r\n\r\n### Link to Sentry event\r\n\r\nhttps://sentry.io/organizations/umai/issues/3824145610/events/2b4e1809b6b3476bbedc4b7534cede98/?project=5264087#breadcrumbs\r\n\r\n### Steps to Reproduce\r\n\r\nI upgraded sentry to `7.27.0` and added `Replay` integrations. which started causing this issue.\r\n\r\nMoreover, it appears that events for this error are happening for **Android** device.\r\n\r\n### Expected Result\r\n\r\nShould not throw the error on using sentry replay. Furthermore, my application is traditional app which is using sentry for exception handling.\r\n\r\nHere are the list of all the event happening for this issue on our application:\r\nhttps://sentry.io/organizations/umai/issues/3824145610/events/30be290df3874c4bbdfa9b0aaff0030b/events/?project=5264087&referrer=replay-console%2F\r\n\r\n### Actual Result\r\n\r\nbreaks on line:\r\n`… ules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js in needMaskingText at line 264:16`\r\n\r\n breaks on line : `(node.matches(maskTextSelector))`\r\n\r\n\r\n\r\n```bash\r\nSyntaxError: Failed to execute 'matches' on 'Element': 'body *:not(style,script)' is not a valid selector.\r\n at needMaskingText(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:264:16)\r\n at needMaskingText(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:271:12)\r\n at serializeNode(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:495:36)\r\n at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:585:25)\r\n at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)\r\n at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)\r\n at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)\r\n at serializeNodeWithId(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:657:33)\r\n at _e(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb-snapshot/es/rrweb-snapshot.js:774:11)\r\n at ht(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb/src/record/index.js:219:21)\r\n at record.takeFullSnapshot(../node_modules/@sentry/replay/esm/node_modules/rrweb/es/rrweb/packages/rrweb/src/record/index.js:434:3)\r\n at \u003cobject>.value(../node_modules/@sentry/replay/esm/replay.js:714:14)\r\n at \u003cobject>.value(../node_modules/@sentry/replay/esm/replay.js:841:12)\r\n at \u003cobject>.value(../node_modules/@sentry/replay/esm/replay.js:692:34)\r\n at this.handleVisibilityChange(../node_modules/@sentry/replay/esm/replay.js:580:18)\r\n at sentryWrapped(../node_modules/@sentry/browser/esm/helpers.js:86:17)\r\n ```\r\n \r\n","author":{"url":"https://github.com/m-nathani","@type":"Person","name":"m-nathani"},"datePublished":"2022-12-24T09:08:06Z","url":"https://github.com/getsentry/sentry-javascript/issues/6618"}
| 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:0f45fd72-b1f9-388e-139b-2115c38248df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB5C:266CF3:BAC5FE:F43556:6B04DBBB |
| html-safe-nonce | 304570e8296598112dd3ab3f136fdb4f77e3d6e0d616c0ddca7aa127d65c4625 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjVDOjI2NkNGMzpCQUM1RkU6RjQzNTU2OjZCMDREQkJCIiwidmlzaXRvcl9pZCI6IjkwMTQwMjExOTM2MTA4Nzc4ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 14de0a7864c1de20823294badc210c3d15a467ea9774a72aff1219405312cc56 |
| hovercard-subject-tag | issue:1510008182 |
| 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/6618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50f9969618770528a95a8c83e78d0a4cddab98e1d471db350c523a33c9669272/getsentry/sentry-javascript/issues/6618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50f9969618770528a95a8c83e78d0a4cddab98e1d471db350c523a33c9669272/getsentry/sentry-javascript/issues/6618 |
| 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 | m-nathani |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| 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 | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| 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