Why did i get this error?

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

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 5.14.2 PyQt 5.14.1
Platform: macOS-10.15.5-x86_64-i386-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-08-09 22:41:24

Traceback (most recent call last):

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

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

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

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 33, in on_sync_done

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 74, in sync_with_ankiweb

  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 "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/sync.py", line 44, in sync_all_decks_and_media

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/sync.py", line 71, in _sync_all_decks
    should_continue = self._sync_deck(ah_did)

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/sync.py", line 83, in _sync_deck
    result = self._download_updates_for_deck(ankihub_did)

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/gui/sync.py", line 120, in _download_updates_for_deck
    import_result = self._importer.import_ankihub_deck(

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 101, in import_ankihub_deck
    return self._import_ankihub_deck_inner(

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 144, in _import_ankihub_deck_inner

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 538, in _adjust_note_types

  File "/Users/REDACTED/Library/Application Support/Anki2/addons21/1322529746/main/importing.py", line 597, in _ensure_local_and_remote_fields_are_same

  File "anki.models", line 223, in update_dict

  File "anki._backend_generated", line 862, in update_notetype_legacy

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

anki.errors.CardTypeError: Card template <U+2068>1<U+2069> in notetype '<U+2068>Basic (optional reversed card) (DR Class / REDACTED@gmail.com)<U+2069>' has a problem.<br>Expected to find a field replacement on the front of the card template.

Sentry link (for developers)

Can you go to Tools > Manage Notetypes and see if this notetype has any notes? If it doesn’t, can you try deleting it?

I do have a number of notes in this notetype. I added a field to this notetype since uploading a deck with notes of this notetype to AnkiHub, and am only now getting this error after trying to sync updates with this updated notetype - could that be causing the error?

Hmm, the logs show that the “⁨Basic (optional reversed card)” note type uses fields such as “English” and “Russian” in its templates, which don’t exist (it has the usual “Front”, “Back”, and “Add Reverse” fields instead), so the error. It’s as if your “Basic (and reversed card)” (which has the English and Russian fields) is being confused with “⁨Basic (optional reversed card)”.

Did you change the note type of any notes? Can you share your collection (with no media)? If it’s too big to upload here, try https://gofile.io/

Adding new fields is not currently supported. I think the add-on will ignore the additional fields normally.

UPDATE: I confirmed the error happens in some cases when adding new fields or changing existing ones. Looking into it.

Okay, thanks! Would it still be useful for me to upload my collection?

Yes please.