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
On my side this is clearly happening when handling multiple queries in parallel.
For me, this happens in two different scenarios.
When handling multiple requests (my framework FastAPI, like any, will deal with them in parallel)
When I gather multiple queries using asyncio.gather
I am used to having only one global Prisma client, I think it's best practice, and thus I could solve this by implementing a rudimentary lock mechanism (lock, queue and callbacks).
Yet I am not satisfied and expected this kind of stuff to be handled natively, but the doc is quite brief so I might have missed stuff. Anyone has a workaround or optim using the codebase (like .batch_)?
Bug description
This issue "httpx.ConnectError: All connection attempts failed", is occurring rarely, can't replicate it. Do not why this issue is coming.
How to reproduce
Expected behavior
Prisma information
Environment & setup
The text was updated successfully, but these errors were encountered: