prisma-client-py icon indicating copy to clipboard operation
prisma-client-py copied to clipboard

quaint error

Open vikyw89 opened this issue 1 year ago • 2 comments

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"} image

How to reproduce

run fastapi server on ubuntu 20

Expected behavior

Prisma information


Environment & setup

  • OS:
  • Database:
  • Python version:
  • Prisma version:

vikyw89 avatar Aug 27 '24 18:08 vikyw89

aside from the warning, everything is working fine ?

vikyw89 avatar Aug 27 '24 18:08 vikyw89

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.

AndreyMarchuk avatar Oct 08 '24 23:10 AndreyMarchuk