Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Exception when saving media #86

Open
brokeyourbike opened this issue Oct 7, 2018 · 0 comments
Open

Exception when saving media #86

brokeyourbike opened this issue Oct 7, 2018 · 0 comments

Comments

@brokeyourbike
Copy link
Contributor

brokeyourbike commented Oct 7, 2018

Ubuntu 18.04
Python 3.6.5

2018-10-07 16:22:08,762 - telethon.tl.core.tlmessage - ERROR - Failed to pack GetFileRequest(location=InputFileLocation(volume_id=None, local_id=None, secret=None), offset=0, limit=262144) Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/core/tlmessage.py", line 59, in __init__ body = GzipPacked.gzip_if_smaller(self.obj) File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/core/gzippacked.py", line 21, in gzip_if_smaller data = bytes(request) File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/functions/upload.py", line 114, in __bytes__ bytes(self.location), File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/types/__init__.py", line 6716, in __bytes__ struct.pack('<q', self.volume_id), struct.error: required argument is not an integer

2018-10-07 16:22:08,768 - asyncio - ERROR - Task exception was never retrieved future: <Task finished coro=<Downloader._media_consumer() done, defined at /usr/local/lib/python3.6/dist-packages/telegram_export-1.7-py3.6.egg/telegram_export/downloader.py:305> exception=error('required argument is not an integer',)> Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/telegram_export-1.7-py3.6.egg/telegram_export/downloader.py", line 311, in _media_consumer bar) File "/usr/local/lib/python3.6/dist-packages/telegram_export-1.7-py3.6.egg/telegram_export/downloader.py", line 301, in _download_media progress_callback=progress File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/client/downloads.py", line 244, in download_file input_location, offset, part_size File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/network/mtprotosender.py", line 217, in send message = self.state.create_message(request, loop=self._loop) File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/network/mtprotostate.py", line 51, in create_message loop=loop File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/core/tlmessage.py", line 59, in __init__ body = GzipPacked.gzip_if_smaller(self.obj) File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/core/gzippacked.py", line 21, in gzip_if_smaller data = bytes(request) File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/functions/upload.py", line 114, in __bytes__ bytes(self.location), File "/usr/local/lib/python3.6/dist-packages/Telethon-1.3-py3.6.egg/telethon/tl/types/__init__.py", line 6716, in __bytes__ struct.pack('<q', self.volume_id), struct.error: required argument is not an integer

There is probably some issue with received params of volume_id, and script throw an exception, and stop working.
I don't sure if this issue related to the telegram-export or Telethon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant