PrismaP
Prisma4mo ago
8 replies
Lami

User was denied access on the database `postgres`

The application cannot connect to the database.
Commands like prisma migrate dev, prisma studio, and prisma db pull work.

# SERVER_ERROR:  [Error [PrismaClientKnownRequestError]:
Invalid `db[model].findFirst()` invocation in
D:\Desktop\Projects\aporo-app\.next\server\chunks\node_modules_better-auth_dist_30558edf._.js:1602:44

  1599 if (!db[model]) {
  1600     throw new __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$better$2d$auth$2f$dist$2f$shared$2f$better$2d$auth$2e$DdzSJf$2d$n$2e$mjs__$5b$app$2d$route$5d$__$28$ecmascript$29$__["B"](`Model ${model} does not exist in the database. If you haven't generated the Prisma client, you need to run 'npx prisma generate'`);
  1601 }
→ 1602 return await db[model].findFirst(
User was denied access on the database `postgres`] {
  code: 'P1010',
  meta: [Object],
  clientVersion: '6.16.3'
}
Was this page helpful?