Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Postgres on Ubuntu using connectionString #161

Open
phillpeters opened this issue Oct 13, 2022 · 0 comments
Open

Connecting to Postgres on Ubuntu using connectionString #161

phillpeters opened this issue Oct 13, 2022 · 0 comments

Comments

@phillpeters
Copy link

I'm trying to connect postgrator to postgres from node on an Ubuntu install in WSL2 using a unix domain socket connection. This is my connection string (I've tried many other formats as well): postgres://user:password/dbname.

Every time I try to run a migration, I get this error: Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string. I get this error no matter how I've formatted the connection string. From what I've found online, if I omit the hostname from the connection string then the connection should default to using the domain socket. But postgrator seems to be wanting to make a different kind of connection.

I am also using Knex in my project to make calls to the database from node. I am using the exact same connection string as above with Knex with no issues. I don't know if this is a bug with using connection strings with Postgrator or if my config has an error. I appreciate any help I can get!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant