Bug when clicking sync once completing the cards in a custom deck, before returning to home screen

Before the error happened, I was…
[finishing my custom deck and clicking sync before going to the home page.]

Error message (don't change this)
Anki 25.02.4 (a5c33ad0)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.4.1-arm64-arm-64bit

Traceback (most recent call last):

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

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.taskman", line 108, in wrapped_done

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/savannahhodges/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 96, in <lambda>
    lambda e: on_done(future_with_exception(e))

  File "/Users/savannahhodges/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 99, in sync_with_ankiweb
    future.result()

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

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

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 243, in wrapped_op

  File "/Users/savannahhodges/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 92, in <lambda>
    op=lambda _: get_subscriptions_and_clean_up(),

  File "/Users/savannahhodges/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 83, in get_subscriptions_and_clean_up
    subscribed_decks = client.get_deck_subscriptions()

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

1322529746.ankihub_client.ankihub_client.AnkiHubHTTPError: AnkiHub request error: 502 Bad Gateway

Sentry link (for developers)

Hello,

Try updating the add-on to see if the error persists.

To do this, go to Tools > Add-ons > Check for Updates in Anki. If an update is available, install it and then restart Anki.

Let me know if the issue continues after updating! :blush: