-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Checklist
- I am sure the error is coming from Pyrogram's code and not elsewhere
- I have searched in the issue tracker for similar bug reports, including closed ones
- I ran
pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zipand reproduced the issue using the latest development version
Description
Getting handler is closed error.
Steps to reproduce
Just running the bot.
Code example
nillLogs
-01-21T07:46:56.115221696Z [10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x7fc0edd24ff0>; the handler is closed
2024-01-21T07:46:56.623466868Z unable to perform operation on <TCPTransport closed=True reading=False 0x7fc0edd24ff0>; the handler is closed
2024-01-21T07:46:56.623511959Z Traceback (most recent call last):
2024-01-21T07:46:56.623516067Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
2024-01-21T07:46:56.623519617Z await handler.callback(self.client, *args)
2024-01-21T07:46:56.623522481Z File "./main.py", line 58, in start
2024-01-21T07:46:56.623525343Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/types/messages_and_media/message.py", line 1003, in reply_text
2024-01-21T07:46:56.623528293Z return await self._client.send_message(
2024-01-21T07:46:56.623531375Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623534072Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/methods/messages/send_message.py", line 137, in send_message
2024-01-21T07:46:56.623537073Z r = await self.invoke(
2024-01-21T07:46:56.623539749Z ^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623542399Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/methods/advanced/invoke.py", line 79, in invoke
2024-01-21T07:46:56.623545227Z r = await self.session.invoke(
2024-01-21T07:46:56.623547971Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623562414Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 412, in invoke
2024-01-21T07:46:56.623565580Z return await self.invoke(query, retries - 1, timeout)
2024-01-21T07:46:56.623568361Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623571134Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 412, in invoke
2024-01-21T07:46:56.623573918Z return await self.invoke(query, retries - 1, timeout)
2024-01-21T07:46:56.623576605Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623579298Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 412, in invoke
2024-01-21T07:46:56.623582109Z return await self.invoke(query, retries - 1, timeout)
2024-01-21T07:46:56.623584849Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623587702Z [Previous line repeated 7 more times]
2024-01-21T07:46:56.623590448Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 402, in invoke
2024-01-21T07:46:56.623593382Z raise e from None
2024-01-21T07:46:56.623596092Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 389, in invoke
2024-01-21T07:46:56.623612377Z return await self.send(query, timeout=timeout)
2024-01-21T07:46:56.623615312Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-01-21T07:46:56.623618023Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 340, in send
2024-01-21T07:46:56.623620868Z raise e
2024-01-21T07:46:56.623624305Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 337, in send
2024-01-21T07:46:56.623637592Z await self.connection.send(payload)
2024-01-21T07:46:56.623640583Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/connection.py", line 69, in send
2024-01-21T07:46:56.623643396Z await self.protocol.send(data)
2024-01-21T07:46:56.623646022Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 38, in send
2024-01-21T07:46:56.623648855Z await super().send(
2024-01-21T07:46:56.623651466Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp.py", line 104, in send
2024-01-21T07:46:56.623654277Z raise OSError(e)
2024-01-21T07:46:56.623656914Z OSError: unable to perform operation on <TCPTransport closed=True reading=False 0x7fc0edd24ff0>; the handler is closedMetadata
Metadata
Assignees
Labels
No labels