prisma-client-py
prisma-client-py copied to clipboard
quaint error
Bug description
{"timestamp":"2024-08-20T17:27:18.918606Z","level":"ERROR","fields":{"message":"Error in PostgreSQL connection: Error { kind: Closed, cause: None }"},"target":"quaint::connector::postgres::native"}
How to reproduce
run fastapi server on ubuntu 20
Expected behavior
Prisma information
Environment & setup
- OS:
- Database:
- Python version:
- Prisma version:
aside from the warning, everything is working fine ?
I'm having the same issue and the whole app is terminated after. It happens when there is no database activity for a while (i.e. 10+ minutes). It might be normal for DBs to close connections (i.e. serverless DB). I think the prisma client should handle this gracefully and reconnect automatically on the next query.