Error connecting to heroku postgres db in nodejs
问题 It seems after my database was upgraded to 10.2 I'm unable to connect. I'm using the pg 7.4.2 npm package. To be clear, I have been connecting without issue for 6 months using the same connection string which had ?ssl=true appended to it. I get this error connecting via Pool or Client. AssertionError [ERR_ASSERTION]: false == true at Object.exports.connect (_tls_wrap.js:1099:3) at Socket.<anonymous> (/home/e/express/testpg/node_modules/pg/lib/connection.js:94:23) at Object.onceWrapper (events