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
When I run pytest, it reports the following error, but it can run successfully when using aiomysql directly.
2024-12-05 18:08:19,869 INFO sqlalchemy.pool.impl.AsyncAdaptedQueuePool Disconnection detected on checkout, invalidating all pooled connections prior to current timestamp (reason: InvalidatePoolError())
2024-12-05 18:08:19,869 INFO sqlalchemy.pool.impl.AsyncAdaptedQueuePool Invalidate connection <AdaptedConnection <asyncmy.connection.Connection object at 0x0000018F41CBF010>> (reason: InvalidatePoolError:())
2024-12-05 18:08:19,869 ERROR sqlalchemy.pool.impl.AsyncAdaptedQueuePool Exception terminating connection <AdaptedConnection <asyncmy.connection.Connection object at 0x0000018F41CBF010>>
Traceback (most recent call last):
File "D:\code\LX10.04_llm_plugins\venv\lib\site-packages\sqlalchemy\pool\base.py", line 1310, in _checkout
raise exc.InvalidatePoolError()
sqlalchemy.exc.InvalidatePoolError: ()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\code\LX10.04_llm_plugins\venv\lib\site-packages\sqlalchemy\pool\base.py", line 374, in _close_connection
self._dialect.do_terminate(connection)
File "D:\code\LX10.04_llm_plugins\venv\lib\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 312, in do_terminate
dbapi_connection.terminate()
File "D:\code\LX10.04_llm_plugins\venv\lib\site-packages\sqlalchemy\dialects\mysql\asyncmy.py", line 226, in terminate
self._connection.close()
File "asyncmy\\connection.pyx", line 336, in asyncmy.connection.Connection.close
File "D:\QAXDownload\software\python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "D:\QAXDownload\software\python310\lib\asyncio\base_events.py", line 750, in call_soon
self._check_closed()
File "D:\QAXDownload\software\python310\lib\asyncio\base_events.py", line 515, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
The text was updated successfully, but these errors were encountered:
When I run pytest, it reports the following error, but it can run successfully when using aiomysql directly.
The text was updated successfully, but these errors were encountered: