Synced computer after a while and updated cards, wanted to upload but I would've lost days of work

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

Error message (don't change this)
Anki 2.1.64 (581f82c5) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.2.1-arm64-arm-64bit
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-08-27 06:59:12

Traceback (most recent call last):

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

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

  File "/Users/juliohanze/Library/Application Support/Anki2/addons21/1322529746/gui/", line 138, in _on_download_finished

  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/juliohanze/Library/Application Support/Anki2/addons21/1322529746/gui/", line 114, in _download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(

  File "/Users/juliohanze/Library/Application Support/Anki2/addons21/1322529746/gui/", line 124, in _missing_media_for_ah_deck
    media_names = ankihub_db.media_names_for_ankihub_deck(

  File "/Users/juliohanze/Library/Application Support/Anki2/addons21/1322529746/db/", line 524, in media_names_for_ankihub_deck
    self._media_names_on_notes_of_note_type(mid, disabled_field_names)

  File "/Users/juliohanze/Library/Application Support/Anki2/addons21/1322529746/db/", line 604, in _media_names_on_notes_of_note_type
    field_name = field_names_for_mid[field_idx]

IndexError: list index out of range

Sentry link (for developers)

Seems that cards were updated with new anking type and also synced new info, downloaded new cards. asked to upload or download but the cards themselves I had done in the past 3 days were not showing up as done. So when it asked if upload or download deck I sent download. Now it won’t sync with ankihub.

Now it won’t download anything of the updates that I canceled by downloading instead of uploading to ankiweb

I unsubscribed from the deck and subscribed again, seems to work. But after updating the new note type the error happens again. So I went back to before the update of the notes and things seem to work, will update note in a week or two and recheck

How are you updating the note type?

I am clicking on yes to the pop up that says new version then click on update notetype button. after I try to sync I get the same error pop up