Error with downloading deck and ankihub

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

Error message (don't change this)
Anki 23.12.1 (1a1d4d54)  (ao)
Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.2.1-x86_64-i386-64bit

Traceback (most recent call last):

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 155, in _download_and_install_decks_inner
    _download_and_install_single_deck(

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 183, in _download_and_install_single_deck
    notes_data: List[NoteInfo] = AnkiHubClient().download_deck(

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 644, in download_deck
    notes_data_raw = _transform_notes_data(notes_data_raw)

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1147, in _transform_notes_data
    result = [

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/ankihub_client/ankihub_client.py", line 1151, in <listcomp>
    json.loads(note_data["fields"])

  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 2322 (char 2321)


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

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

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 64, in <lambda>
    on_done=lambda future: on_new_deck_subscriptions_done(

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 27, in on_new_deck_subscriptions_done
    on_done(future_with_exception(future.exception()))

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/auto_sync.py", line 101, in sync_with_ankiweb
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
    return func(*args, **kwargs)

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 77, in _on_install_done
    import_results: List[AnkiHubImportResult] = 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/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 67, in <lambda>
    task=lambda: _download_and_install_decks_inner(

  File "/Users/varshabhdahiya/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 175, in _download_and_install_decks_inner
    raise exceptions[0]

1322529746.gui.exceptions.DeckDownloadAndInstallError: Error while downloading and installing deck e77aedfe-a636-40e2-8169-2fce2673187e: Unterminated string starting at: line 1 column 2322 (char 2321)

Sentry link (for developers)