Missing configured driver adapter
Hi
When using the driver adapters & query compiler, in combination with the readReplicas extension, I get this vague error. Is this a bug, unsupported, or am I overlooking somethiing?
8 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai is there if you need a quick second opinion.Hi @Niels!
Does the error go away if you remove readReplicas extension?
Which prisma version are you using?
Yes indeed, using latest for both the extension & prisma.
Thanks for confirming. And this happens when you try to generate PrismaClient with
npx prisma generate?No, it happens during runtime. The client is generated within the function, and this function is only called during requests.
Have there been other reports of the same issue?
No, I am not aware of any other reports.
Would it be possible to provide a minimal reproducible example so that I can raise it internally?
Sure 👍
Fixed it myself, the extension assumed that the client could be constructed with a
datasourceUrl, but from now on, it can either be with an adapter OR datasourceUrl.
https://github.com/prisma/extension-read-replicas/blob/7874a2122f9b0b529f03a16e020316bf9bb733c3/src/ReplicaManager.ts#L33