Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal invocation with sendBeacon and URL has an error #42

Open
Tracked by #40
adriaandotcom opened this issue Aug 28, 2023 · 1 comment
Open
Tracked by #40

Illegal invocation with sendBeacon and URL has an error #42

adriaandotcom opened this issue Aug 28, 2023 · 1 comment

Comments

@adriaandotcom
Copy link
Collaborator

From a very helpful customer, we got this error report:

The following is logged to console:
Simple Analytics: Uncaught TypeError: Illegal invocation
At this stage, it seems exclusively happening on Chrome/Windows.

Good read: https://xgwang.me/posts/you-may-not-know-beacon/

It does suggest that if a URL has an error, sendBeacon will throw "TypeError: Illegal invocation".

This also seemed to effect the next.js project as well: vercel/next.js#23856 (fix: https://github.com/vercel/next.js/pull/26601/files)

@adriaandotcom adriaandotcom mentioned this issue Aug 28, 2023
5 tasks
@mrloop
Copy link

mrloop commented Oct 2, 2023

I've also had this logged to sentry

sendBeacon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants