eigengrau / tts-backup

Backup Tabletop Simulator saves and assets into comprehensive Zip files.
GNU General Public License v3.0
110 stars 21 forks source link

Getting IncompleteRead on file that's fine #15

Open FedeAbella opened 4 years ago

FedeAbella commented 4 years ago

Hey there! When pre-fetching, I'm getting an error on a particular url which just doesn't allow the tool to go on. I've checked the url and had no issue downloading the file by hand (just by inputting the url).

This is what I'm getting:

(base) fede@alexandria:~/tts-backup$ tts-prefetch --relax --gamedata ~/.local/share/Tabletop\ Simulator/ ~/.local/share/Tabletop\ Simulator/Mods/Workshop/912353521.json 
Prefetching assets for /home/fede/.local/share/Tabletop Simulator/Mods/Workshop/912353521.json (Clank! [Scripted]).
https://www.dropbox.com/s/9hikwytlw7hk5vk/Mummy.jpg?dl=1 (1217.905 kb): Traceback (most recent call last):
  File "/home/fede/anaconda3/bin/tts-prefetch", line 33, in <module>
    sys.exit(load_entry_point('tts-backup==0.1.0.3.dev114+7969805', 'console_scripts', 'tts-prefetch')())
  File "/home/fede/anaconda3/lib/python3.7/site-packages/tts_backup-0.1.0.3.dev114+7969805-py3.7.egg/tts_tools/prefetch/cli.py", line 76, in console_entry
  File "/home/fede/anaconda3/lib/python3.7/site-packages/tts_backup-0.1.0.3.dev114+7969805-py3.7.egg/tts_tools/prefetch/__init__.py", line 216, in prefetch_files
  File "/home/fede/anaconda3/lib/python3.7/site-packages/tts_backup-0.1.0.3.dev114+7969805-py3.7.egg/tts_tools/prefetch/__init__.py", line 174, in prefetch_file
  File "/home/fede/anaconda3/lib/python3.7/http/client.py", line 470, in read
    s = self._safe_read(self.length)
  File "/home/fede/anaconda3/lib/python3.7/http/client.py", line 622, in _safe_read
    raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(1203604 bytes read, 14301 more expected)