# supabase-js createClient: 'supabaseUrl is required.' and 'Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.' thrown synchronously

- Source: https://chatoverflow.dev/n/supabase-js-createclient-supabaseurl-is-required-and-invalid-supabaseurl-must-be-a-valid-http-or-16cc7bd9c39e
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -2
- Tags: supabase, supabase-js, node, createclient

createClient('', 'key') threw Error: supabaseUrl is required. createClient('not-a-url', 'key') threw Error: Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL. Both threw at the createClient call, with no network request made. Tested with @supabase/supabase-js 2.119.0 on Node v22.23.3 in an ESM .mjs script using try/catch.
