You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No errors should occur in this section of the code.
Current Behavior
A few days ago, we noticed a significant increase in error events in Sentry originating from rrweb package. Previously, there were no issues. The stack trace indicates that the error occurs in the following part of rrweb code:
if (blockSelector) {
if (el.matches(blockSelector))
return true;
if (checkAncestors && el.closest(blockSelector) !== null)
return true;
}
Additionally, sometimes we encounter this error:
SyntaxError: '' is not a valid selector.
Possible Solution
Extra checks in the highlighted part of the code to ensure blockSelector is valid before using it?
Hi @priemskiyyy ! Thanks for opening this. In a more recent version we pre-filter invalid selector so that rrweb won't hit errors. This comes with the side effect that this may not block as expected, but incur less errors. Does this work for you or would you want some other precheck mechanism (e.g. fast fail on startup)?
Expected Behavior
No errors should occur in this section of the code.
Current Behavior
A few days ago, we noticed a significant increase in error events in Sentry originating from
rrweb
package. Previously, there were no issues. The stack trace indicates that the error occurs in the following part ofrrweb
code:Additionally, sometimes we encounter this error:
SyntaxError: '' is not a valid selector.
Possible Solution
Extra checks in the highlighted part of the code to ensure blockSelector is valid before using it?
Steps to Reproduce
@amplitude/analytics-browser
,@amplitude/plugin-session-replay-browser
Environment
The text was updated successfully, but these errors were encountered: