Error upon clicking on Sync

I just started to use anki on my phone today (ios), and the progress I made there wasn’t synced into the desktop version. Upon clicking on “sync” the error occured.

Anki 24.06.3 (d678e393) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Traceback (most recent call last):

File “aqt.taskman”, line 142, in _on_closures_pending

File “C:\Users\Mariana\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py”, line 101, 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\Mariana\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py”, line 66, in sync_with_ankihub
subscribed_decks = client.get_deck_subscriptions()

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

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Not Acceptable

How can I solve it?

Error message (don't change this)
Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Traceback (most recent call last):

  File "aqt.taskman", line 142, in _on_closures_pending

  File "C:\Users\Mariana\AppData\Roaming\Anki2\addons21\1322529746\gui\auto_sync.py", line 101, 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\Mariana\AppData\Roaming\Anki2\addons21\1322529746\gui\operations\ankihub_sync.py", line 66, in sync_with_ankihub
    subscribed_decks = client.get_deck_subscriptions()

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

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 406 Not Acceptable

Sentry link (for developers)

Hello,

It looks like you’re using an older version of Anki. To resolve the issue, please follow these steps in order:

  1. Sync Your iPhone First: Before doing anything else, please tap “Sync” on your iPhone. This ensures your latest mobile progress is saved to AnkiWeb.

  2. Update Anki on Your Desktop: Please download and install the latest version of Anki from the official website: https://apps.ankiweb.net/

  3. Update the AnkiHub Add-on: After updating your desktop Anki, go to Tools > Add-ons > Check for Updates.

  4. Restart and Sync: Finally, please restart your desktop Anki and sync again.

Let me know if this resolves your issue! :blush: