Error message/ missing media

I have missing media especially FA. In an attempt to resolve the issue, I unsubscribed and then subscribed again. This error occurred when syncing began.

Error message (don't change this)
Anki 2.1.60 (76d88073) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-12-17 20:43:42

Traceback (most recent call last):

  File "requests.models", line 971, in json

  File "json", line 346, in loads

  File "json.decoder", line 337, in decode

  File "json.decoder", line 353, in raw_decode

json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 359943 (char 359942)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

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

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

  File "C:\Users\ahmad\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 49, in on_failure
    raise exception

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

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

  File "C:\Users\ahmad\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 53, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "C:\Users\ahmad\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 118, in _update_deck_media_and_download_missing_media
    self._update_deck_media(ankihub_did=ah_did)

  File "C:\Users\ahmad\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 132, in _update_deck_media
    for chunk in self._client.get_deck_media_updates(

  File "C:\Users\ahmad\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 745, in get_deck_media_updates
    data = response.json()

  File "requests.models", line 975, in json

requests.exceptions.JSONDecodeError: Unterminated string starting at: line 1 column 359943 (char 359942)

Sentry link (for developers)

1 Like

Hi Ahmad! :slight_smile:

We do not sync the FA field, therefore, you will need the media package from V11 in order to get FA images.

If you do have the media package, do the following to import the media

If you want to see them, you have to go to ankihub → anking deck → manage protected data → make sure additional resources and FA does not have a check

Then go to browse in your anki → at the top click ankihub → reset all local changes

Then import media from your pre-existing V11 deck or media package