Oh no! An AnkiHub add-on error has occurred

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.

Things not to ask about here:

Please include supporting information and documents such as screenshots, recordings, etc.

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.

Thinking

Search
Found 0 results for ‘tags:official Oh no AnkiHub add-on error has occurred popup freezes Anki category::person_raising_hand: 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

  1. Completely quit Anki.
  2. Hold Shift on your keyboard.
  3. While holding Shift, open Anki.
  4. Keep holding Shift until you see a dialog asking if you want to start without add-ons.
  5. 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):

  1. Go to Tools → Add-ons.
  2. Find AnkiHub in the list.
  3. Select it and click Toggle Enabled (or Disable).
  4. 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:

  1. In Tools → Add-ons, select AnkiHub and click Delete.
  2. Restart Anki.
  3. Reinstall AnkiHub using the exact code and steps from our docs here:
    https://community.ankihub.net/docs → AnkiHub Add-on installation guide.
  4. 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:

  1. Start Anki again without add-ons (Shift method).
  2. Go to Tools → Add-ons → AnkiHub → View Files.
  3. Look for any log or error files and attach them here, or:
  4. 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.

Hello,

I would be happy to help. :slight_smile:

In order to better be of help, it might be useful if you can share the error details so that we have a better idea of what may be transpiring:

Additionally, if you can confirm the version of Anki that you’re using that may also be useful

If you can, within Anki go to your top menu bar. From there, click Anki - About Anki and check your version number.

hello, unfortunately it wont allow me to click on the “show error details” as it freezes up the second I open the application.

I did however delete to AnkiHub add-on which seemed to resolve it. But every time I try to reinstall it, I have the same pop up

Just to double-check, do you mind confirm this part for me?

sorry- yes the version number is: Version ⁨26.05 (e64c6b1a)⁩
Python 3.13.11 Qt 6.11.0 Chromium 140

Have you tried reinstalling the AnkiHub add-on, to see if the issue recurs?

I’m wondering if you didn’t have an older version of the add-on, by chance

You might give it a shot:

  • Open Anki
  • Go to your top menu bar: Tools - Add-ons
  • Click ‘get add-ons’
  • Insert this code: 1322529746
  • Restart Anki

Give that a shot, let me know how you fare, and we’ll go from there and hopefully we can get you squared away. :slight_smile:

just reinstalled and gave me the same error again.

And just to make sure: you’re not able to click ‘error details’ or ‘report error’?

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.

Sentry link (for developers)

Gotcha, thanks for that. :slight_smile:

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?

That seemed to work. I just logged back in and the error is gone. Thanks!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.