`await client.connect()` hangs forever
trusktr opened this issue · comments
Joe Pea commented
Any ideas why client.connect() may hang forever?
Code:
const client = new Client({
user: session.username,
host: session.host,
database: session.database,
password: session.password,
port: session.port,
ssl : true
})
console.log(' ---------- connect', session)
await client.connect()
await client.connect()
stays hung indefinitely.
I'm on "pg": "^7.4.3",
Anything I should look out for with the options passed to Client
?
Joe Pea commented
I updated to "pg": "^8.11.3",
and the issue went away.