Prisma Connection Timeout: Issues with Fetching a New Connection from the Pool
I'm running into a persistent error while trying to use Prisma's findUnique method in my project. The error message is:
Timed out fetching a new connection from the connection pool. More info: http://pris.ly/d/connection-pool (Current connection pool timeout: 30, connection limit: 10)
Even after adjusting the connection and pool time settings in the Prisma configuration, the error still occurs. The issue arises when trying to fetch a user from the database with prisma.user.findUnique() after retrieving user details using Clerk. It seems the application can't get a new connection from the pool, despite increasing the connection timeout and pool limit.
Has anyone encountered this and found a solution?
Connection pool | Prisma Documentation
Prisma ORM's query engine creates a connection pool to store and manage database connections.
0 Replies