Anvil Extras routing error - ExternalError: TypeError: Illegal invocation

Hi,

I’ve been using anvil extras and its routing module for my app navigation for a long time. However, today, my app started crashing with the following error log:

image

As per the logs, the error is caused by the following line:

from anvil_extras import routing

Has anyone seen something similar? I have no idea why this started happening suddenly.

Here is also the full output of the browser console when the error occurs:

Thanks for any help.

Update:
The error shown above occures only in chrome-based browsers. Safari crashes with a different error:

Also, the error seems to be ocurring a lot more on forced page refresh (when trying to reload css and all of the assets).

1 Like

Probably best to create an issue on github.

It would be helpful to get more information:

  • clone link
  • live link
  • does it happen in an incognito browser (this would rule out any extensions you’re using)
  • which version of anvil-extras you’re using
1 Like

All my apps depend from the published version of Anvil Extras and import the routing module, and they don’t have any that problem.

2 Likes

Thank you,
I’ll try to open an issue on GitHub with a more detailed description.

And I’ve just managed to find the culprit.

I was trying to use Sentry to track errors within my app. For some weird reason, it caused this error and it tried to blame it on anvil_extras module :slight_smile:. Once I removed Sentry from my app, everything started working as before.

Yeap I think I’ve seen that before. It’s because sentry overrides some JavaScript globals. And does it in such a way that it doesn’t play nicely with Skulpt’s JavaScript - Python bridge. I seem to remember raising an issue with them but never got a response.

1 Like