Next.js Discord

Discord Forum

NextAuth Error, whats wrong?

Unanswered
English Lop posted this in #help-forum
Open in Discord
English LopOP
[next-auth][error][SESSION_ERROR] 
https://next-auth.js.org/errors#session_error 
Invalid `prisma.session.findUnique()` invocation:


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s0\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false }) PrismaClientUnknownRequestError: 
Invalid `prisma.session.findUnique()` invocation:


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s0\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
    at In.handleRequestError (/home/matthew/projects/ts/clubsync/node_modules/@prisma/client/runtime/library.js:122:7044)
    at In.handleAndLogRequestError (/home/matthew/projects/ts/clubsync/node_modules/@prisma/client/runtime/library.js:122:6188)
    at In.request (/home/matthew/projects/ts/clubsync/node_modules/@prisma/client/runtime/library.js:122:5896)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async l (/home/matthew/projects/ts/clubsync/node_modules/@prisma/client/runtime/library.js:127:11167)
    at async getSessionAndUser (webpack-internal:///(rsc)/./node_modules/@auth/prisma-adapter/index.js:239:36) {
  name: 'GetSessionAndUserError',
  code: undefined
}

2 Replies

Giant panda
@English Lop did you firgure out how to fix this?
English LopOP
I did not