cwoac / TTS-Manager

Import/Export Mods from Tabletop Simulator
MIT License
23 stars 10 forks source link

Crash on IncompleteRead #20

Closed bobpaul closed 3 years ago

bobpaul commented 3 years ago

I encountered this while downloading an asset. It seems to be a server issue as wget and curl provide the same error. Attempting to download the asset with Firefox produces a broken JPG.

Traceback (most recent call last):
  File "/usr/lib/python3.8/http/client.py", line 555, in _get_chunk_left
    chunk_left = self._read_next_chunk_size()
  File "/usr/lib/python3.8/http/client.py", line 522, in _read_next_chunk_size
    return int(line, 16)
ValueError: invalid literal for int() with base 16: b''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/http/client.py", line 572, in _readall_chunked
    chunk_left = self._get_chunk_left()
  File "/usr/lib/python3.8/http/client.py", line 557, in _get_chunk_left
    raise IncompleteRead(b'')
http.client.IncompleteRead: IncompleteRead(0 bytes read)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./tts_cli.py", line 255, in <module>
    tts_cli=TTS_CLI()
  File "./tts_cli.py", line 114, in __init__
    rc,message = args.func(args)
  File "./tts_cli.py", line 171, in do_download
    if not tts.download_file(self.filesystem,ident,args.save_type):
  File "/mnt/storage/TTS-Manager/tts/tts.py", line 93, in download_file
    successful = save.download()
  File "/mnt/storage/TTS-Manager/tts/save.py", line 155, in download
    result = url.download()
  File "/mnt/storage/TTS-Manager/tts/url.py", line 46, in download
    data=response.read()
  File "/usr/lib/python3.8/http/client.py", line 465, in read
    return self._readall_chunked()
  File "/usr/lib/python3.8/http/client.py", line 579, in _readall_chunked
    raise IncompleteRead(b''.join(value))
http.client.IncompleteRead: IncompleteRead(81385 bytes read)