I can't sync Anki hub

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 2.1.66 (70506aeb) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.5.2-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-10-20 19:47:12

Traceback (most recent call last):

  File "/Users/monicaroman/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 435, in <lambda>
    qconnect(q_action.triggered, lambda: sync_with_ankihub(on_done=on_done))

  File "/Users/monicaroman/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/monicaroman/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 433, in on_done
    future.result()

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

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

  File "/Users/monicaroman/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/monicaroman/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 551, in get_deck_subscriptions
    raise AnkiHubHTTPError(response)

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 401 Unauthorized

Sentry link (for developers)

Hello!

Can you try restarting your device and trying again?

If that does not fix it, then try deleting the ankihub addon and redonwnloading it by inputting this code: 1322529746