saloodpeepo
saloodpeepo
Explore posts from servers
TTCTheo's Typesafe Cult
Created by saloodpeepo on 9/28/2024 in #questions
Why is there no .query() in my trpc procedure
No description
10 replies
TtRPC
Created by saloodpeepo on 5/24/2024 in #❓-help
trpc query help
With trpc on the client side lets say I have a form component that creates a post and also a list component which displays the post on the same page, When I create a post, how do I make this list that displays the post refresh. I'm working with nextjs btw
3 replies
TTCTheo's Typesafe Cult
Created by saloodpeepo on 4/10/2024 in #questions
Error with NextAuth and prisma
I am using the google provider with nextauth and prisma along with supabase, and I get this error when trying to sign in,
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `prisma.account.findUnique()` invocation:


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


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s1\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
at In.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:7044)
at In.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:6188)
at In.request (/var/task/node_modules/@prisma/client/runtime/library.js:122:5896)
at async l (/var/task/node_modules/@prisma/client/runtime/library.js:127:11167)
at async getUserByAccount (/var/task/.next/server/chunks/606.js:39:176522) {
name: 'GetUserByAccountError',
code: undefined
}
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `prisma.account.findUnique()` invocation:


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


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s1\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
at In.handleRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:7044)
at In.handleAndLogRequestError (/var/task/node_modules/@prisma/client/runtime/library.js:122:6188)
at In.request (/var/task/node_modules/@prisma/client/runtime/library.js:122:5896)
at async l (/var/task/node_modules/@prisma/client/runtime/library.js:127:11167)
at async getUserByAccount (/var/task/.next/server/chunks/606.js:39:176522) {
name: 'GetUserByAccountError',
code: undefined
}
I haven't changed anything in the prisma.schema that comes with t3 setup, The google credentials setup and everything was done right, and I was able to sign in properly yesterday. Any help is much appreciated thanks in advance.
29 replies