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

TypeError: Illegal invocation #64

Closed
akshart opened this issue Jul 9, 2021 · 3 comments
Closed

TypeError: Illegal invocation #64

akshart opened this issue Jul 9, 2021 · 3 comments

Comments

@akshart
Copy link

akshart commented Jul 9, 2021

getting TypeError: Illegal invocation
The stack trace’s top layer stops at window.navigator.sendBeacon(eventsUrl(), index_module_1(data) which comes from ahoy.js

Calling function is ahoy.trackView()
Errors are not confined to any particular browser or device.

@ankane
Copy link
Owner

ankane commented Jul 15, 2021

Hey @akshart, I'm not sure how to reproduce. Can you put together a minimal reproducible example?

@ankane ankane closed this as completed Aug 12, 2021
@wenqige
Copy link

wenqige commented Aug 30, 2021

This issue is currently quite prevalent in our usage of Ahoy. I don't think it will be very easy to provide a way to reproduce but would it be possible to improving the visibility into the circumstances surrounding the exceptions being thrown? The error it self doesn't give very much info on why it's taking place. Would it be possible to add a try catch to give useful debug output and rethrow, such as an output of eventsUrl() and data and index_module_1's return in order to help us with debugging the Illegal Invocations?

@pedrocarmona
Copy link

In sentry this error has the following Trace Details

Operation Name: pageload
Status: internal_error
Browser Name: Chrome

Screenshot 2024-05-23 at 09 45 17

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

4 participants