Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download tg files failed sometimes #109

Open
wx69wx opened this issue Oct 13, 2022 · 1 comment
Open

download tg files failed sometimes #109

wx69wx opened this issue Oct 13, 2022 · 1 comment

Comments

@wx69wx
Copy link

wx69wx commented Oct 13, 2022

sometimes download tg file failed, the log below.
reboot vps can fix,but why?
please fix the bug , thanks a lot!

2022-10-12 22:26:41,307 - pyrogram.connection.connection - WARNING - timed out
2022-10-12 22:27:47,591 - pyrogram.session.session - WARNING - [5] Retrying "raw.functions.upload.GetFile" due to
2022-10-12 22:28:03,100 - pyrogram.client - ERROR -
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pyrogram/client.py", line 952, in get_file
r = await session.send(
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 461, in send
return await self.send(data, retries - 1, timeout)
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 461, in send
return await self.send(data, retries - 1, timeout)
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 461, in send
return await self.send(data, retries - 1, timeout)
[Previous line repeated 2 more times]
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 454, in send
raise e from None
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 442, in send
return await self._send(data, timeout=timeout)
File "/usr/local/lib/python3.9/dist-packages/pyrogram/session/session.py", line 407, in _send
raise TimeoutError
TimeoutError
2022-10-12 22:28:03,278 - pyrogram.dispatcher - ERROR - expected str, bytes or os.PathLike object, not NoneType
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pyrogram/dispatcher.py", line 210, in handler_worker
await self.loop.run_in_executor(
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/bot/bot/plugins/download.py", line 67, in _telegram_file
sent_message.edit(Messages.DOWNLOADED_SUCCESSFULLY.format(os.path.basename(file_path), humanbytes(os.path.getsize(file_path))))
File "/usr/lib/python3.9/posixpath.py", line 142, in basename
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

@wx69wx
Copy link
Author

wx69wx commented Oct 13, 2022

does the bot has limit of total size when downloading the tg files?

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

No branches or pull requests

1 participant