Runtime Error #892
Unanswered
No1IrishStig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've started getting a RuntimeError out of nowhere after updating my hosting servers OS and packages.
Traceback (most recent call last):
File "/root/Code/Done/API/SQL.py", line 29, in execute
raise e
File "/root/Code/Done/API/SQL.py", line 27, in execute
await cur.execute(query)
File "/usr/local/lib/python3.10/dist-packages/aiomysql/cursors.py", line 239, in execute
await self._query(query)
File "/usr/local/lib/python3.10/dist-packages/aiomysql/cursors.py", line 457, in _query
await conn.query(q)
File "/usr/local/lib/python3.10/dist-packages/aiomysql/connection.py", line 469, in query
await self._read_query_result(unbuffered=unbuffered)
File "/usr/local/lib/python3.10/dist-packages/aiomysql/connection.py", line 672, in _read_query_result
await result.read()
File "/usr/local/lib/python3.10/dist-packages/aiomysql/connection.py", line 1153, in read
first_packet = await self.connection._read_packet()
File "/usr/local/lib/python3.10/dist-packages/aiomysql/connection.py", line 598, in _read_packet
packet_header = await self._read_bytes(4)
File "/usr/local/lib/python3.10/dist-packages/aiomysql/connection.py", line 646, in _read_bytes
data = await self._reader.readexactly(num_bytes)
File "/usr/lib/python3.10/asyncio/streams.py", line 708, in readexactly
await self._wait_for_data('readexactly')
File "/usr/lib/python3.10/asyncio/streams.py", line 502, in _wait_for_data
await self._waiter
RuntimeError: Task <Task pending name='Task-12' coro=<RequestHandler._handle_request() running at /usr/local/lib/python3.10/dist-packages/aiohttp/web_protocol.py:433> cb=[Task.task_wakeup()]> got Future attached to a different loop
The code never caused this error previously, and now will not work at all due to these 'attached ot a different loop' errors.
Beta Was this translation helpful? Give feedback.
All reactions