Whats the explanation for this ?
Iâm also getting this error now but in production. My serverless function on Vercel is failing with this error. It was working fine for months and now all of a sudden itâs not.
[next-auth][error][adapter_error_getUserByEmail]
Errors | NextAuth.js
Invalidprisma.user.findUnique()
invocation:Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: â26000â, message: âprepared statement "PGBOUNCER_3" does not existâ, severity: âERRORâ, detail: None, column: None, hint: None }), transient: false }) {
message: â\nâ +
âInvalidprisma.user.findUnique()
invocation:\nâ +
â\nâ +
â\nâ +
âError occurred during query execution:\nâ +
âConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: â26000â, message: âprepared statement \âPGBOUNCER_3\â does not existâ, severity: âERRORâ, detail: None, column: None, hint: None }), transient: false })â,
stack: âPrismaClientUnknownRequestError: \nâ +
âInvalidprisma.user.findUnique()
invocation:\nâ +
â\nâ +
â\nâ +
âError occurred during query execution:\nâ +
âConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: â26000â, message: âprepared statement \âPGBOUNCER_3\â does not existâ, severity: âERRORâ, detail: None, column: None, hint: None }), transient: false })\nâ +
â at Cn.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:123:6989)\nâ +
â at Cn.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:123:6206)\nâ +
â at Cn.request (/var/task/node_modules/@prisma/client/runtime/library.js:123:5926)\nâ +
â at async l (/var/task/node_modules/@prisma/client/runtime/library.js:128:9968)',
name: âPrismaClientUnknownRequestErrorâ
}
⨯ PrismaClientUnknownRequestError:
Invalidprisma.user.findUnique()
invocation:Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: â26000â, message: âprepared statement "PGBOUNCER_3" does not existâ, severity: âERRORâ, detail: None, column: None, hint: None }), transient: false })
at Cn.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:123:6989)
at Cn.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:123:6206)
at Cn.request (/var/task/node_modules/@prisma/client/runtime/library.js:123:5926)
at async l (/var/task/node_modules/@prisma/client/runtime/library.js:128:9968) {
name: âGetUserByEmailErrorâ,
code: undefined
}
Iâm also having the same problem! We need this to be resolved urgently
Thank you for reports, not yet sure what is going on â looking into it.
What client do you use?
Okay, I think we identified the root cause. Working on that.
Weâve started the incident: Issues with connections to pooled endpoints - neon Status and rolling back latest pgboucer release. That should fix the issue. @ibrahimyaacob92 @Ramzi_Bach @lservo can you please share what client are you using?
What do you mean by client?
I meant software that you are using to send queries. Actually looking closely at the backtraces I see that it is Prisma.
It is indeed Prisma.
I donât know if everything is fixed, but as far as I can tell, for me at least, everything seems to be back to normal. Thank you!
this just drive me nuts for a while, i just decided to delete the entire project and built a new one. Hopefully things like this would not happen again.