Tigge / antfs-cli

Extracts FIT files from ANT-FS based sport watches such as Garmin Forerunner 60, 405CX, 310XT, 610 and 910XT.
MIT License
312 stars 77 forks source link

fail to upload with fit file of 0 byte #175

Open alveoten opened 5 years ago

alveoten commented 5 years ago

Hi, sometimes my 310xt create 0 bytes files. When start to upload the script die. this is the traceback: Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/antfs_cli/program.py", line 356, in main g.start() File "/usr/local/lib/python2.7/dist-packages/ant/fs/manager.py", line 217, in start self._main() File "/usr/local/lib/python2.7/dist-packages/ant/fs/manager.py", line 155, in _main self.on_transport(beacon) File "build/bdist.linux-x86_64/egg/antfs_cli/program.py", line 251, in on_transport index = self.upload_file(typ, filename) File "build/bdist.linux-x86_64/egg/antfs_cli/program.py", line 295, in upload_file index = self.create(typ, data, AntFSCLI._get_progress_callback()) File "/usr/local/lib/python2.7/dist-packages/ant/fs/manager.py", line 248, in create self.upload(result.get_index(), data, callback) File "/usr/local/lib/python2.7/dist-packages/ant/fs/manager.py", line 268, in upload upload_response._get_argument("response")) AntFSUploadException: ('Upload request failed', 2) Interrupted: ('Upload request failed', 2)