Can't sync

I can’t sync my anki on my labtop and use it on my phone now. When I try to sync on my labtop it says an ankihub error has occured.

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-12.5.1-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2024-07-30 21:59:56

Traceback (most recent call last):

  File "aqt.webview", line 46, in cmd

  File "aqt.webview", line 153, in _onCmd

  File "aqt.webview", line 662, in _onBridgeCmd

  File "decorator", line 232, in fun

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

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

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/907028815/__init__.py", line 623, in myLinkHandler
    return _old(self, url)

  File "aqt.toolbar", line 411, in _linkHandler

  File "aqt.toolbar", line 435, in _syncLinkHandler

  File "aqt.main", line 1012, in on_sync_button_clicked

  File "decorator", line 232, in fun

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

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

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 83, in _on_ankiweb_sync
    sync_with_ankiweb(future_with_exception(e))

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/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 "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 80, in _on_ankiweb_sync
    _maybe_sync_with_ankihub(on_done=sync_with_ankiweb)

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in _maybe_sync_with_ankihub
    sync_with_ankihub(on_done=on_done)

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 61, in sync_with_ankihub
    on_done(future_with_exception(e))

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/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 "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 49, in sync_with_ankihub
    subscribed_decks = client.get_deck_subscriptions()

  File "/Users/tommyjohn/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 547, in get_deck_subscriptions
    raise AnkiHubHTTPError(response)

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

Sentry link (for developers)

Hello,

Please update your AnkiHub addon and get the latest Anki version here: https://apps.ankiweb.net/

I am noticing that my account is not synced because there are tagged cards that are missing in the browse. I updated my anking addon and downloaded the new version of anki then clicked sync and 1700 random cards were added to my new. I then after looking online found a backup to before I did that essentailly reversing that. Now my sync button is red and I am still able to find cards in their correct tagged location for example in the Step 1 V12 deck under the Sketchy Pharm deck under a certain video tag there are no cards. How do I fix this

Please try resetting your local changes. To do this:

Go to browse in your Anki β†’ at the top click on the ankihub addon tab β†’ press reset all local changes

This will restore everything to what AnkiHub has unless you have specifically protected those fields