Encountered an error

Before the error happened, I was…
Doing anki cards from an ankihub deck

Error message (don't change this)
Anki 25.02.6 (6381f184)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.5-arm64-arm-64bit

Traceback (most recent call last):

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

  File "/Users/pedromedina/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, 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/pedromedina/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
    return func(*args, **kwargs)

  File "/Users/pedromedina/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 210, in _on_sync_done
    aqt.mw.reset()

  File "aqt.main", line 899, in reset

  File "aqt.main", line 851, in _synthesize_op_did_execute_from_reset

  File "_aqt.hooks", line 3840, in __call__

  File "aqt.main", line 859, in on_operation_did_execute

  File "aqt.reviewer", line 231, in op_executed

  File "aqt.reviewer", line 203, in refresh_if_needed

  File "aqt.reviewer", line 261, in nextCard

  File "aqt.reviewer", line 376, in _showQuestion

  File "anki.cards", line 140, in question

  File "anki.cards", line 156, in render_output

  File "anki.template", line 120, in from_existing_card

  File "anki.cards", line 167, in note

  File "anki.collection", line 496, in get_note

  File "anki.notes", line 50, in __init__

  File "anki.notes", line 56, in load

  File "anki._backend_generated", line 1340, in get_note

  File "anki._backend", line 172, in _run_command

anki.errors.NotFoundError: Your database appears to be in an inconsistent state. Please use the Check Database action. No such note: '1764786726514'

Sentry link (for developers)

Hi,

Please go to Tools > Check Database on your Anki main screen.