Hey there!
I encountered an issue while attempting to connect to a Google Cloud database using slonik:
const pool = createPool(
`socket:userName:password@/cloudsql/teest-123986:europe-west3:test?db=dbName`
)
The error message I received was:
error: throw new Error('SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string')
Upon investigation, I discovered that the password was null (the string parser returned incorrect value).
I followed this guide for constructing the connection string.
Any insights on why this error occurred?