Before the error happened, I was…
Trying to download the anatoking deck. I have restarted my anki several times but it keeps throwing this error.
Error message (don't change this)
Anki 25.09.4 (d52ca669) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: macOS-26.5.1-arm64-arm-64bit-Mach-O
Traceback (most recent call last):
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 201, in _download_and_install_decks_inner
_download_and_install_single_deck(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
deck,
^^^^^
behavior_on_remote_note_deleted=behavior_on_remote_note_deleted,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
recommended_deck_settings=recommended_deck_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 228, in _download_and_install_single_deck
notes_data: List[NoteInfo] = AnkiHubClient().download_deck(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
deck.ah_did, download_progress_cb=deck_download_progress_cb
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 688, in download_deck
notes_data_raw = _transform_notes_data(notes_data_raw)
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1336, in _transform_notes_data
json.loads(note_data["fields"]) if isinstance(note_data["fields"], str) else note_data["fields"]
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/json/decoder.py", line 361, in raw_decode
obj, end = self.scan_once(s, idx)
~~~~~~~~~~~~~~^^^^^^^^
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 565 (char 564)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
raise exception
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
closure()
~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 100, in sync_with_ankiweb
future.result()
~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
return func(*args, **kwargs)
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 146, in _on_new_deck_subscriptions_done
future.result()
~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 36, in wrapper
return func(*args, **kwargs)
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 97, in _on_install_done
import_results: List[AnkiHubImportResult] = future.result()
~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
~~~~~~~~~~~~~~~~~^^
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/aydinherik/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-aarch64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 81, in <lambda>
task=lambda: _download_and_install_decks_inner(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
decks,
^^^^^^
behavior_on_remote_note_deleted=behavior_on_remote_note_deleted,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
recommended_deck_settings=recommended_deck_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
),
^
File "/Users/aydinherik/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 218, in _download_and_install_decks_inner
raise exceptions[0]
1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck bea25743-706a-4bff-a043-efcc0a617121: Unterminated string starting at: line 1 column 565 (char 564)