© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
AlphaRyze

Error in Query

I get some errors due to the prepared statement in my code using prisma and the new supabase bouncer:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42P05), message: "prepared statement \"s1\" already exists", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("prepare.c"), line: Some(412), routine: Some("StorePreparedStatement") }) }), transient: false })
    at pn.handleRequestError (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:6649)
    at pn.handleAndLogRequestError (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:5907)
    at pn.request (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:5786)
    at PrismaService._request (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:179:10484)
    at UserController.getUser (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\src\api\controllers\user.controller.ts:27:16)
    at C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@nestjs\core\router\router-execution-context.js:46:28
    at C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@nestjs\core\router\router-proxy.js:9:17
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E42P05), message: "prepared statement \"s1\" already exists", detail: None, hint: None, position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("prepare.c"), line: Some(412), routine: Some("StorePreparedStatement") }) }), transient: false })
    at pn.handleRequestError (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:6649)
    at pn.handleAndLogRequestError (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:5907)
    at pn.request (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:176:5786)
    at PrismaService._request (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@prisma\client\runtime\library.js:179:10484)
    at UserController.getUser (C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\src\api\controllers\user.controller.ts:27:16)
    at C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@nestjs\core\router\router-execution-context.js:46:28
    at C:\Users\Leonardo\Desktop\discord-dashboard-backend-next\node_modules\@nestjs\core\router\router-proxy.js:9:17

This is my connection string:
postgres://postgres.dbaddress:dbpassword@aws-0-us-east-1.pooler.supabase.com:6543/postgres
postgres://postgres.dbaddress:dbpassword@aws-0-us-east-1.pooler.supabase.com:6543/postgres
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Error SQL query
SupabaseSSupabase / help-and-questions
7mo ago
Query error codes
SupabaseSSupabase / help-and-questions
3y ago
python sql query Attribution error
SupabaseSSupabase / help-and-questions
4y ago
"No query parameters in this request" in a parameterless query
SupabaseSSupabase / help-and-questions
2mo ago