#Can't connect to Postgres DB

3 messages · Page 1 of 1 (latest)

noble dew
#

Hey, if i launch my medusa api, this error appears:

Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
    at Object.continueSession (/home/webserver/website/store6.0/node_modules/pg/lib/sasl.js:24:11)
    at Client._handleAuthSASLContinue (/home/webserver/website/store6.0/node_modules/pg/lib/client.js:257:10)
    at Connection.emit (events.js:314:20)
    at /home/webserver/website/store6.0/node_modules/pg/lib/connection.js:114:12
    at Parser.parse (/home/webserver/website/store6.0/node_modules/pg-protocol/dist/parser.js:40:17)
    at Socket.<anonymous> (/home/webserver/website/store6.0/node_modules/pg-protocol/dist/index.js:11:42)
    at Socket.emit (events.js:314:20)```
noble dew
#

(I'm trying to get it running on ubuntu)

dim nimbus
#

You have to set the password to postgres like this postgres://user:pass@host:port/DBName