You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set an env var via: export DATABASE_URL=postgres://[USERNAME]:[PASSWORD]@[HOST]:[PORT]/[DATABASE_NAME]?sslmode=require
I ran gleam run -m squirrel
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?
The text was updated successfully, but these errors were encountered:
@giacomocavalieri Hey, I ran into the same problem but I think it's a bug on pog that might not be properly interpreting the sslmode=require query param. When using the same connection string with it I'm getting the same error message unless I add .ssl(true) manually to the config like so:
export DATABASE_URL=postgres://[USERNAME]:[PASSWORD]@[HOST]:[PORT]/[DATABASE_NAME]?sslmode=require
gleam run -m squirrel
I'm trying to connect to a Vercel Postgres - maybe that's the issue?
The text was updated successfully, but these errors were encountered: