Error occurred while syncing with ankihub

Before the error happened, I was…
trying to sync with ankihub.

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.5.0 PyQt 6.5.0
Platform: macOS-13.4-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-09 10:18:18

Traceback (most recent call last):

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

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

  File "/Users/Priya/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 160, in _on_download_finished
    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 "/Users/Priya/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 116, in _update_deck_media_and_download_missing_media
    self._client.download_media(missing_media_names, ah_did)

  File "/Users/Priya/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 541, in download_media
    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 "/Users/Priya/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 550, in _download_media
    with open(media_file_path, "wb") as file:

FileNotFoundError: [Errno 2] No such file or directory: '/Users/Priya/Library/Application Support/Anki2/CP final lecture cards/collection.media/2c9b22725fdcef54b9e37e920e87a946.webp'

Sentry link (for developers)

@pchoudhary I assume this error only occurs sometimes? Do you have issues such as no media files at all appearing?