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
Hi, I am developing an API using FastAPI and Databases. I recently updated most of the projects libraries, and I'm encountering some issue with my tests. I used to use pytest-asyncio, but since the fastapi update I am now using anyio.
I was not too sure if this was the correct repository to post my issue.
When I have a transaction the database connection seems to hang at the end. I have provided simples snippets of code to reproduce the issue. As well as the hanging piece of code located in the asyncpg library. There are no error message, and I have to quit the process manually to stop it.
Not related/fixed by #546, but I ran into something like this while working on that PR. Based on your example I think this is caused by your code in router.py.
You should not await a transaction's creation when using the low-level transaction management logic.
Thanks for the time you took to respond to this issue. Priorities have shift in my projet, I won't be able to test this before a few weeks. I'll make sure to update this issue when I'm back at it.
Hi, I am developing an API using FastAPI and Databases. I recently updated most of the projects libraries, and I'm encountering some issue with my tests. I used to use pytest-asyncio, but since the fastapi update I am now using anyio.
I was not too sure if this was the correct repository to post my issue.
When I have a transaction the database connection seems to hang at the end. I have provided simples snippets of code to reproduce the issue. As well as the hanging piece of code located in the asyncpg library. There are no error message, and I have to quit the process manually to stop it.
Here are the libraries' versions:
Fastapi main
conftest.py
test.py
router.py
The hanging happens in
asyncpg.pool.py
inclose()
I hope this is enough information.
Thank you for your times
The text was updated successfully, but these errors were encountered: