Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quaint error #1024

Open
vikyw89 opened this issue Aug 27, 2024 · 2 comments
Open

quaint error #1024

vikyw89 opened this issue Aug 27, 2024 · 2 comments

Comments

@vikyw89
Copy link

vikyw89 commented Aug 27, 2024

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
Copy link
Author

vikyw89 commented Aug 27, 2024

aside from the warning, everything is working fine ?

@AndreyMarchuk
Copy link

AndreyMarchuk commented Oct 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants