Unable to sync anki

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

Error message when trying to sync anki- any idea how to fix?

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-12.6.5-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-10-03 08:27:21

Traceback (most recent call last):

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

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

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

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

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

  File "aqt.main", line 1013, 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/pbzrose/Library/Application Support/Anki2/addons21/802358864/gui/auto_sync.py", line 83, in _on_ankiweb_sync
    sync_with_ankiweb(future_with_exception(e))

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

  File "/Users/pbzrose/Library/Application Support/Anki2/addons21/802358864/gui/auto_sync.py", line 91, in _maybe_sync_with_ankihub
    on_done(future_with_result(None))

  File "/Users/pbzrose/Library/Application Support/Anki2/addons21/802358864/gui/auto_sync.py", line 72, in sync_with_ankiweb
    _old(*args, **kwargs)

  File "decorator", line 232, in fun

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

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

  File "/Users/pbzrose/Library/Application Support/Anki2/addons21/802358864/gui/threading_utils.py", line 26, in wrapper
    return func(*args, **kwargs)

  File "/Users/pbzrose/Library/Application Support/Anki2/addons21/802358864/gui/auto_sync.py", line 60, in _rate_limited
    _old(*args, **kwargs)

  File "decorator", line 232, in fun

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

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

  File "decorator", line 232, in fun

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

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

  File "/Users/pbzrose/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/pbzrose/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/pbzrose/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/pbzrose/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/pbzrose/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/pbzrose/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/pbzrose/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/pbzrose/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)

Please try signing out from your AnkiHub account from AnkiHub > Sign out then signing in again.