PrismaClientInitializationError #33175
Unanswered
Priyanshu1112
asked this question in
Questions
Replies: 1 comment 2 replies
-
Than function exists an instances normally. Wonder if Prisma wiped the schema during a migration? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using prisma + supabase in my next.js project and have ran into a problem
{
msg: '\n' +
'Invalid
prisma.user.findUnique()
invocation:\n' +'\n' +
'\n' +
'Error querying the database: FATAL: Authentication error, reason: "Authentication query failed: %Postgrex.Error{message: nil, postgres: %{code: :undefined_function, file: \"parse_func.c\", hint: \"No function matches the given name and argument types. You might need to add explicit type casts.\", line: \"629\", message: \"function pgbouncer.get_auth(unknown) does not exist\", pg_code: \"42883\", position: \"15\", routine: \"ParseFuncOrColumn\", severity: \"ERROR\", unknown: \"ERROR\"}, connection_id: 2186132, query: \"SELECT * FROM pgbouncer.get_auth($1)\"}"',
cause: undefined,
name: 'PrismaClientInitializationError'
}
there is no function in pgbouncer called get_auth
and I am also not able to create it due to permission issue
please any aid would be very helpful
Beta Was this translation helpful? Give feedback.
All reactions