TypeError: Failed to fetch

(Sorry for the screenshotted terminal, copy-paste is broken for me right now)

Logs: files.catbox.moe/b0bv7k.png (i can’t include links for some reason)

I am on a fresh install of Anki with no plugins. Clicking pretty much anything, (reviewing a deck, options, etc…) with the exception of Qt only pages gives a blank white page, and sometimes a TypeError error popup.

I’ve tried curl-ing the URLs in the error message, and they return the expected JS bundle, so it’s not that the server is unreachable

Update: I’ve installed the AnkiWebView Inspector addon. It looks like requests are failing with ERR_INSUFFICIENT_RESOURCES. This is weird, because CPU is only at 20% and memory at 40%. I doubt it’s because of performance, since in addition to resource utilization being low, other JS requests in the network tab are completing successfully.

I also tried doing await (await fetch(url)).text() on one of the URLs that gave an error in the console, and it completes fine.

Including terminal output as text is certainly more useful, but I’ve attached your screenshot.

  • Have you tried everything on the Troubleshooting Checklist? Troubleshooting - Anki Manual

  • You don’t say what OS you’re using, which is generally helpful for a fresh-install startup failure issue.

Including terminal output as text is certainly more useful, but I’ve attached your screenshot.

As I mentioned, copy-paste is broken for me currently.

  • Have you tried everything on the Troubleshooting Checklist?

Yes

You don’t say what OS you’re using, which is generally helpful for a fresh-install startup failure issue.

Ubuntu 22.04.05 LTS

tThank you for your help

Does the same thing happen with an older anki release, say 24.11?

1 Like

The same error (ERR_INSUFFICIENT_RESOURCES) happens on 24.11 too.

1 Like

bump.

That’s probably not going to help. Most users probably already saw your post.

You could try other things though:

  1. Build the latest anki from main and see if the problem persists.
  2. Install Ubuntu 22.04.05 LTS in a vm, install Anki there and see if it works.
  3. Test if it works fine with AnkiWeb on firefox and chromium.

(Providing more infos or more things you tried are generally more useful. If you just “bump” it, the “bump” is most likely being irgnored)

I’ve fixed this issue! I had Anki running in bubblejail, and certain syscalls were being blocked due to seccomp. Disabling seccomp completely fixed it.

Probably should’ve mentioned this, but I have it run on everything and forgot about it.

2 Likes