Can't generate types from CLI

I tried the new CLI to generate types from a URL wit this command
supabase gen types typescript --db-url https://xxx.supabase.co

and this is the error I received:
supabase gen types typescript --db-url https://xxx.supabase.co
Error: node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "#<Object>".] {
  code: 'ERR_UNHANDLED_REJECTION'
}


Did I do something wrong?
FYI, Docker is running and if I run supabase start it works locally as expected.

Thanks
Was this page helpful?