Been trying to update my anking deck. Everytime I try to open anki a popup with “Oh no! An AnkiHub add-on error has occurred" shows up and completely freezes anki. I have to force quit everytime. Ive tried deleting and reinstalling with no resolution.
Thank you for reaching out! Our moderators have been notified and will assist you shortly. In the meantime, you can get an instant response from me simply by @ mentioning my username`. Alternatively, start a private conversation with me (see screenshot below). If you ask me a question, I will do my best to respond using only verified information found in the official AnkiHub docs and the Anki manual.
You can also find answers to common questions in our FAQ and Docs.
Search
Found 0 results for ‘tags:official Oh no AnkiHub add-on error has occurred popup freezes Anki category: Support order:latest max_posts:20 tags:add-on-error status:open’
When that “Oh no! An AnkiHub add-on error has occurred” popup freezes Anki on startup, it usually means the add-on is crashing before Anki can fully load.
Since you can’t get into Anki to change settings, try these steps in order:
1. Start Anki with the AnkiHub add-on disabled
Completely quit Anki.
Hold Shift on your keyboard.
While holding Shift, open Anki.
Keep holding Shift until you see a dialog asking if you want to start without add-ons.
Click Yes.
If Anki opens normally, that confirms the issue is with an add-on (likely AnkiHub).
2. Disable AnkiHub from the Add-ons menu
Once you’re in Anki (Safe Mode):
Go to Tools → Add-ons.
Find AnkiHub in the list.
Select it and click Toggle Enabled (or Disable).
Restart Anki normally.
If Anki now opens without freezing, the AnkiHub add-on is the culprit.
3. Reinstall AnkiHub cleanly
Since you already tried reinstalling, I’d recommend a clean reinstall:
In Tools → Add-ons, select AnkiHub and click Delete.
Restart Anki.
Reinstall AnkiHub using the exact code and steps from our docs here: https://community.ankihub.net/docs → AnkiHub Add-on installation guide.
Restart Anki again and try opening your collection.
4. If it still freezes: send us the error log
For us to help more precisely, we’ll need the full error message:
Start Anki again without add-ons (Shift method).
Go to Tools → Add-ons → AnkiHub → View Files.
Look for any log or error files and attach them here, or:
Try starting Anki with add-ons again, and if any detailed error text appears (even briefly), take a screenshot and upload it to this topic.
Also let us know:
Your Anki version (Help → About).
Your OS (Windows / macOS / Linux + version).
If even Safe Mode (Shift on startup) doesn’t work, please say that explicitly—then we’ll walk you through temporarily renaming your add-ons folder so you can get back into Anki safely and then re-add AnkiHub.
If you can try those again, just to be sure. Without more info, it’s hard to be certain what advice to give as I can’t say I’ve had anyone else reach out with this issue
Similarly, if you can upload your user logs and copy-paste the file name here as well:
Okay it let me click on it this time, I copy and pasted the details:
Error message (don't change this)
Anki 26.05 (e64c6b1a) (ao)
Python 3.13.11 Qt 6.11.0 PyQt 6.11.0
Platform: macOS-15.6.1-arm64-arm-64bit-Mach-O
Traceback (most recent call last):
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 152, in raise_exception
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 148, in _on_closures_pending
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 88, in <lambda>
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/taskman.py", line 111, in wrapped_done
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/operations/__init__.py", line 253, in wrapped_done
File "/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 106, in <lambda>
.failure(lambda e: on_done(future_with_exception(e)))
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in sync_with_ankiweb
future.result()
~~~~~~~~~~~~~^^
File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Applications/Anki.app/Contents/Frameworks/Python.framework/Versions/3.13/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/operations/__init__.py", line 243, in wrapped_op
File "/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 102, in <lambda>
op=lambda _: get_subscriptions_and_clean_up(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 89, in get_subscriptions_and_clean_up
subscribed_decks = client.get_deck_subscriptions()
File "/Users/HaleyTatum/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 633, in get_deck_subscriptions
raise AnkiHubHTTPError(response)
1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 401 Unauthorized
Invalid token.
I’ve gone ahead and tagged a developer to take a look at it for you, as it’s a bit over my head I’m sorry to say. In the meantime, can you try logging out and logging back in via the add-on, just on a lark?