-
Notifications
You must be signed in to change notification settings - Fork 22
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
the handler is closed #27
Comments
I am also facing same issue, but I do not know how to solve it. |
same and A LOT LOT. |
i do restart only as only solution, happens too much for userbots than bots. |
my current solution is also to restart the client, but this will affect other ongoing tasks
my current solution is also to restart the client, but this will affect other ongoing tasks |
true, same. |
Please retry with |
Please try again with pip uninstall -y pyrogram && pip install https://github.com/TelegramPlayGround/pyrogram/archive/unfixe-error-d.zip |
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
and reproduced the issue using the latest development versionDescription
i am getting this exact error when sending files. it looks like this though,
this is really interrupting my bot. would appreciate any advice.
Steps to reproduce
Traceback (most recent call last):
File "//venv/lib/python3.12/site-packages/pyrogram/methods/advanced/save_file.py", line 109, in worker
await session.invoke(data)
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 422, in invoke
return await self.invoke(query, retries - 1, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Previous line repeated 7 more times]
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 412, in invoke
raise e from None
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 399, in invoke
return await self.send(query, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 350, in send
raise e
File "//venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 347, in send
await self.connection.send(payload)
File "//venv/lib/python3.12/site-packages/pyrogram/connection/connection.py", line 69, in send
await self.protocol.send(data)
File "//venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 38, in send
await super().send(
File "//venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp.py", line 104, in send
raise OSError(e)
OSError: unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
[10] Retrying "upload.SaveBigFilePart" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
[10] Retrying "upload.SaveBigFilePart" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
[10] Retrying "upload.SaveBigFilePart" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
[10] Retrying "upload.SaveBigFilePart" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
unable to perform operation on <TCPTransport closed=True reading=False 0x105e929b0>; the handler is closed
Code example
No response
Logs
No response
The text was updated successfully, but these errors were encountered: