P
Prisma•2w ago
ProEvilz

Failed requests

After enabling detailed logging on the Prisma Client instance, I've noticed quite a few failed query attemps.
prisma:warn Attempt 1/3 failed for querying: This request must be retried
prisma:warn Retrying after 26ms
prisma:info Calling https://accelerate.prisma-data.net.....
prisma:warn Attempt 1/3 failed for querying: This request must be retried
prisma:warn Retrying after 26ms
prisma:info Calling https://accelerate.prisma-data.net.....
Why?
1 Reply
Nurul
Nurul•2w ago
Hi @ProEvilz 👋 Prisma Accelerate includes an internal component called Query Engines, which handle incoming database queries. If a Query Engine does not receive traffic for 10 minutes, it automatically shuts down, and a new Query Engine is provisioned upon the next request. The logs you’re seeing typically appear when a database query is executed after an idle period, prompting a new Query Engine to start up. I believe you would also be getting “Schema (re)uploaded…” log which would indicate that a new Query Engine is being allocated and needs to retrieve the schema hash for your schema.prisma file.
Want results from more Discord servers?
Add your server