Answer the question
In order to leave comments, you need to log in
How to debug an error to understand why the url for the database is incorrect?
Good afternoon!
I'm trying to connect to an App Engine database and compose a URL. This error comes out:
throw new Error('SASL: SCRAM-SERVER-FIRST-MESSAGE:
client password must be a string')
const pool = slonik_1.createPool(
`socket:userName:[email protected]/cloudsql/teest-123986:europe-west3:test?db=dbName`
)
var parse = require('pg-connection-string').parse;
var config = parse(
`socket:userName:[email protected]/cloudsql/teest-123986:europe-west3:test?db=dbName`
)
console.log('config', config)
config [Object: null prototype] {
db: 'dbName',
user: 'userName',
password: 'password',
port: null,
host: '/cloudsql/teest-123986:europe-west3:test',
database: 'dbName',
client_encoding: undefined
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question