You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure the error is coming from Pyrofork's code and not elsewhere
I have searched in the issue tracker for similar bug reports, including closed ones
I ran pip3 install -U git+https://github.com/Mayuri-Chan/pyrofork and reproduced the issue using the latest development version
Description
The connection is lost and the robot cannot automatically restore the connection, resulting in no response. It needs to be restarted to normalize.
Steps to reproduce
Connection lost
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 414, in handler_worker
await parser(update, users, chats)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 107, in message_parser
await pyrogram.types.Message._parse(self.client, update.message, users, chats,
File "/usr/local/lib/python3.8/dist-packages/pyrogram/types/messages_and_media/message.py", line 946, in _parse
parsed_message.pinned_message = await client.get_messages(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/messages/get_messages.py", line 117, in get_messages
r = await self.invoke(rpc, sleep_threshold=-1)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/advanced/invoke.py", line 80, in invoke
r = await self.session.invoke(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
[Previous line repeated 7 more times]
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 428, in invoke
raise e from None
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 415, in invoke
return await self.send(query, timeout=timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 355, in send
raise e
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 352, in send
await self.connection.send(payload)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/connection.py", line 81, in send
await self.protocol.send(data)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 39, in send
await super().send(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp.py", line 150, in send
raise OSError(e)
OSError: Connection lost
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
[10] Retrying "updates.GetState" due to: Connection lost
socket.send() raised exception.
Code example
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Checklist
pip3 install -U git+https://github.com/Mayuri-Chan/pyrofork
and reproduced the issue using the latest development versionDescription
The connection is lost and the robot cannot automatically restore the connection, resulting in no response. It needs to be restarted to normalize.
Steps to reproduce
Connection lost
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 414, in handler_worker
await parser(update, users, chats)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 107, in message_parser
await pyrogram.types.Message._parse(self.client, update.message, users, chats,
File "/usr/local/lib/python3.8/dist-packages/pyrogram/types/messages_and_media/message.py", line 946, in _parse
parsed_message.pinned_message = await client.get_messages(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/messages/get_messages.py", line 117, in get_messages
r = await self.invoke(rpc, sleep_threshold=-1)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/methods/advanced/invoke.py", line 80, in invoke
r = await self.session.invoke(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 438, in invoke
return await self.invoke(query, retries - 1, timeout)
[Previous line repeated 7 more times]
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 428, in invoke
raise e from None
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 415, in invoke
return await self.send(query, timeout=timeout)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 355, in send
raise e
File "/usr/local/lib/python3.8/dist-packages/pyrogram/session/session.py", line 352, in send
await self.connection.send(payload)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/connection.py", line 81, in send
await self.protocol.send(data)
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 39, in send
await super().send(
File "/usr/local/lib/python3.8/dist-packages/pyrogram/connection/transport/tcp/tcp.py", line 150, in send
raise OSError(e)
OSError: Connection lost
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
socket.send() raised exception.
[10] Retrying "updates.GetState" due to: Connection lost
socket.send() raised exception.
Code example
No response
Logs
No response
The text was updated successfully, but these errors were encountered: