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

socket.send() raised exception #92

Open
3 tasks done
fivepe opened this issue Aug 27, 2024 · 1 comment
Open
3 tasks done

socket.send() raised exception #92

fivepe opened this issue Aug 27, 2024 · 1 comment

Comments

@fivepe
Copy link

fivepe commented Aug 27, 2024

Checklist

  • 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

@RabbitFored
Copy link
Contributor

Facing the same issue

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

2 participants