Uncomplete media sync downloading

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

Error message (don't change this)
Anki 25.02 (038d85b1)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

  File "urllib3.response", line 748, in _error_catcher

  File "urllib3.response", line 894, in _raw_read

urllib3.exceptions.IncompleteRead: IncompleteRead(35557 bytes read, 10035 more expected)


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


Traceback (most recent call last):

  File "requests.models", line 820, in generate

  File "urllib3.response", line 1060, in stream

  File "urllib3.response", line 977, in read

  File "urllib3.response", line 902, in _raw_read

  File "contextlib", line 137, in __exit__

  File "urllib3.response", line 772, in _error_catcher

urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(35557 bytes read, 10035 more expected)', IncompleteRead(35557 bytes read, 10035 more expected))


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

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

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

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

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

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

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

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

  File "C:\Users\surgm\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 138, in _update_deck_media_and_download_missing_media
    self._client.download_media(missing_media_names, ah_did)

  File "C:\Users\surgm\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 579, in download_media
    if 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 "C:\Users\surgm\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 595, in _download_media
    for block in response.iter_content(1024):

  File "requests.models", line 822, in generate

requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(35557 bytes read, 10035 more expected)', IncompleteRead(35557 bytes read, 10035 more expected))

Sentry link (for developers)

Hello,

Can you restart your Anki and see if this persists?

Also try the following if you are missing media:

Please try resetting your local changes. To do this:

Go to browse in your Anki → at the top click on the ankihub addon tab → press reset all local changes

This will restore everything to what AnkiHub has unless you have specifically protected those fields