© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
12 replies
Bings

Can you use `createClient` with the Transaction pooler?

In node.js, I'm trying to use
@supabase/supabase-js
@supabase/supabase-js
's
createClient
createClient
, however this is in a serverless function so I want to use the
Transaction pooler
Transaction pooler
provided by supabase (https://supabase.com/dashboard/project/_?showConnect=true)

In supabase it says to use this URI:
postgres://postgres:[YOUR-PASSWORD]@db.xxxxxxxxxxxxxxx.supabase.co:6543/postgres
postgres://postgres:[YOUR-PASSWORD]@db.xxxxxxxxxxxxxxx.supabase.co:6543/postgres


But if I pass that to
createClient
createClient
, it errors saying:
Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.
Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.


Am I meant to be using a different lib by any chance?
Preview image
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Switching from Session Pooler -> Transaction pooler
SupabaseSSupabase / help-and-questions
6mo ago
Does it make sense to use the transaction pooler with a gunicorn-flask application?
SupabaseSSupabase / help-and-questions
7mo ago
Connection type: Direct or Transaction pooler
SupabaseSSupabase / help-and-questions
7mo ago
"Max client connections reached" on Transaction Pooler
SupabaseSSupabase / help-and-questions
4mo ago