-
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
Locking Error ?
Steps to reproduce
Just running for long with heavy updates maybe.
Code example
No response
Logs
2024-11-09T17:11:37.939715582Z Task exception was never retrieved
2024-11-09T17:11:37.939771460Z future: <Task finished name='Task-223221' coro=<Session.restart() done, defined at /opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py:185> exception=RuntimeError('read() called while another coroutine is already waiting for incoming data')>
2024-11-09T17:11:37.939785649Z Traceback (most recent call last):
2024-11-09T17:11:37.939791503Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 186, in restart
2024-11-09T17:11:37.939796621Z await self.stop()
2024-11-09T17:11:37.939801431Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 175, in stop
2024-11-09T17:11:37.939806695Z await self.recv_task
2024-11-09T17:11:37.939811550Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 308, in recv_worker
2024-11-09T17:11:37.939817293Z packet = await self.connection.recv()
2024-11-09T17:11:37.939822393Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-09T17:11:37.939827936Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/connection.py", line 81, in recv
2024-11-09T17:11:37.939833060Z return await self.protocol.recv()
2024-11-09T17:11:37.939838068Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-09T17:11:37.939843035Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp_abridged.py", line 46, in recv
2024-11-09T17:11:37.939848412Z length = await super().recv(1)
2024-11-09T17:11:37.939853576Z ^^^^^^^^^^^^^^^^^^^^^
2024-11-09T17:11:37.939858528Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/connection/transport/tcp/tcp.py", line 156, in recv
2024-11-09T17:11:37.939862348Z chunk = await asyncio.wait_for(
2024-11-09T17:11:37.939865436Z ^^^^^^^^^^^^^^^^^^^^^^^
2024-11-09T17:11:37.939868761Z File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
2024-11-09T17:11:37.939872133Z return await fut
2024-11-09T17:11:37.939875087Z ^^^^^^^^^
2024-11-09T17:11:37.939878068Z File "/usr/local/lib/python3.12/asyncio/streams.py", line 713, in read
2024-11-09T17:11:37.939881103Z await self._wait_for_data('read')
2024-11-09T17:11:37.939884039Z File "/usr/local/lib/python3.12/asyncio/streams.py", line 531, in _wait_for_data
2024-11-09T17:11:37.939887160Z raise RuntimeError(
2024-11-09T17:11:37.939890130Z RuntimeError: read() called while another coroutine is already waiting for incoming data
2024-11-09T17:11:37.940013864Z Task exception was never retrieved
2024-11-09T17:11:37.940024124Z future: <Task finished name='Task-223222' coro=<Session.restart() done, defined at /opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py:185> exception=RuntimeError('read() called while another coroutine is already waiting for incoming data')>
2024-11-09T17:11:37.940043387Z Traceback (most recent call last):
2024-11-09T17:11:37.940048065Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 186, in restart
2024-11-09T17:11:37.940052790Z await self.stop()
2024-11-09T17:11:37.940082547Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 175, in stop
2024-11-09T17:11:37.940089212Z await self.recv_task
2024-11-09T17:11:37.940094325Z RuntimeError: read() called while another coroutine is already waiting for incoming data
2024-11-09T17:11:37.940199709Z Task exception was never retrieved
2024-11-09T17:11:37.940207963Z future: <Task finished name='Task-223133' coro=<Session.restart() done, defined at /opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py:185> exception=RuntimeError('read() called while another coroutine is already waiting for incoming data')>
2024-11-09T17:11:37.940212787Z Traceback (most recent call last):
2024-11-09T17:11:37.940216298Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 186, in restart
2024-11-09T17:11:37.940219949Z await self.stop()
2024-11-09T17:11:37.940223430Z File "/opt/venv/lib/python3.12/site-packages/pyrogram/session/session.py", line 175, in stop
2024-11-09T17:11:37.940227073Z await self.recv_task
2024-11-09T17:11:37.940230767Z RuntimeError: read() called while another coroutine is already waiting for incoming data
2024-11-09T17:14:12.461637854Z [10] Retrying "messages.SendMessage" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x7f704e928300>; the handler is closed
2024-11-09T17:41:50.332738006Z [10] Retrying "updates.GetState" due to: unable to perform operation on <TCPTransport closed=True reading=False 0x7f704e928300>; the handler is closed```Metadata
Metadata
Assignees
Labels
No labels