Skip to content

Error when trying to use squirrel with Vercel Postgres #32

@JosephTLyons

Description

@JosephTLyons
  1. I set an env var via: export DATABASE_URL=postgres://[USERNAME]:[PASSWORD]@[HOST]:[PORT]/[DATABASE_NAME]?sslmode=require
  2. I ran gleam run -m squirrel
  3. I got this output
Error: Cannot authenticate (no-method)

I ran into an unexpected problem while trying to authenticate with
the Postgres server. This is most definitely a bug!

Please open an issue at
https://github.com/giacomocavalieri/squirrel/issues/new
with some details about what you where doing, including the
following message:
  Expected: AuthMethod, Got: BeErrorResponse(Set(dict.from_list([#(Code("XX000"), []), #(Message("connection is insecure (try using `sslmode=require`)"), []), #(Severity("ERROR"), [])])))

I'm trying to connect to a Vercel Postgres - maybe that's the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions