Skip to content

sslmode=require ignored on postgresql URL with gen types --db-url #719

@humphd

Description

@humphd

I'm trying to generate types from a remote postgres database:

$ supabase gen types typescript --db-url "postgresql://user:password@some-db.us-east-1.aws.neon.tech/db?sslmode=require"

Connecting to some-db.us-east-1.aws.neon.tech
(node:1) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
file:///usr/src/app/dist/server/server.js:57
        throw new Error(schemasError.message);
              ^

Error: connection is insecure (try using `sslmode=require`)
    at file:///usr/src/app/dist/server/server.js:57:15
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

However, I've included ?sslmode=require. Is there a different way I should be doing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions