Anki hub requires update to keep working but won't update

Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-05 19:21:49

Traceback (most recent call last):

File “aqt.progress”, line 118, in handler

File “aqt.main”, line 217, in on_window_init

File “aqt.main”, line 264, in setupProfileAfterWebviewsLoaded

File “aqt.main”, line 316, in setupProfile

File “aqt.main”, line 503, in loadProfile

File “aqt.main”, line 1044, in maybe_auto_sync_on_open_close

File “decorator”, line 232, in fun

File “anki.hooks”, line 89, in decorator_wrapper

File “anki.hooks”, line 86, in repl

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 83, in _on_ankiweb_sync
sync_with_ankiweb(future_with_exception(e))

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 74, in sync_with_ankiweb
future.result()

File “concurrent.futures._base”, line 439, in result

File “concurrent.futures._base”, line 391, in __get_result

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 80, in _on_ankiweb_sync
_maybe_sync_with_ankihub(on_done=sync_with_ankiweb)

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 100, in _maybe_sync_with_ankihub
sync_with_ankihub(on_done=on_done)

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 38, in sync_with_ankihub
on_done(future_with_exception(e))

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 74, in sync_with_ankiweb
future.result()

File “concurrent.futures._base”, line 439, in result

File “concurrent.futures._base”, line 391, in __get_result

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 36, in sync_with_ankihub
check_and_install_new_deck_subscriptions(on_done=on_new_deck_subscriptions_done)

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py”, line 38, in check_and_install_new_deck_subscriptions
on_done(future_with_exception(e))

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 17, in on_new_deck_subscriptions_done
on_done(future_with_exception(future.exception()))

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py”, line 74, in sync_with_ankiweb
future.result()

File “concurrent.futures._base”, line 439, in result

File “concurrent.futures._base”, line 391, in __get_result

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py”, line 18, in check_and_install_new_deck_subscriptions
decks = _not_installed_ah_decks()

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py”, line 43, in _not_installed_ah_decks
remote_decks = client.get_deck_subscriptions()

File “C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py”, line 502, in get_deck_subscriptions
raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Outdated client, please update the AnkiHub add-on.
[Replace this text.]

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-07-05 19:21:49

Traceback (most recent call last):

  File "aqt.progress", line 118, in handler

  File "aqt.main", line 217, in on_window_init

  File "aqt.main", line 264, in setupProfileAfterWebviewsLoaded

  File "aqt.main", line 316, in setupProfile

  File "aqt.main", line 503, in loadProfile

  File "aqt.main", line 1044, in maybe_auto_sync_on_open_close

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 83, in _on_ankiweb_sync
    sync_with_ankiweb(future_with_exception(e))

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 74, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 80, in _on_ankiweb_sync
    _maybe_sync_with_ankihub(on_done=sync_with_ankiweb)

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 100, in _maybe_sync_with_ankihub
    sync_with_ankihub(on_done=on_done)

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 38, in sync_with_ankihub
    on_done(future_with_exception(e))

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 74, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 36, in sync_with_ankihub
    check_and_install_new_deck_subscriptions(on_done=on_new_deck_subscriptions_done)

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py", line 38, in check_and_install_new_deck_subscriptions
    on_done(future_with_exception(e))

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 17, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\auto_sync.py", line 74, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py", line 18, in check_and_install_new_deck_subscriptions
    decks = _not_installed_ah_decks()

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\new_deck_subscriptions.py", line 43, in _not_installed_ah_decks
    remote_decks = client.get_deck_subscriptions()

  File "C:\Users\zakla\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 502, in get_deck_subscriptions
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Outdated client, please update the AnkiHub add-on.

Sentry link (for developers)

I have had this issue before. If you haven’t tried this already, after it asks to update, click no. Then go Tools → Add-ons → Click on the Ankihub add-on → Check for updates. This has worked for me in the past when I encountered this issue.