node-postgres: Failing at connection after running npm install
I have a piece of code that connects to Redshift and runs a query. The code worked until I re-deployed today without changing anything in the functionality or the npm version. Note that every time I deploy the code, it installs all the npm packages before archiving.
In package.json I have “pg”: “^7.4.1” as the dependency.
The error I am constantly getting is:
AssertionError: false == true
at Object.exports.connect (_tls_wrap.js:1020:3)
at Socket.<anonymous> (/var/task/node_modules/pg/lib/connection.js:94:23)
at Socket.g (events.js:292:16)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:547:20)
Anyone have a clue on what is causing this? Thanks!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 14
- Comments: 17 (7 by maintainers)
The issue is fixed wit the commit 7de137f9f88611b8fcae5539aa90b6037133f1f1. Thank you @matthiasak.
@vitaly-t Note, that this issue appears to also impact pg-promise@8.4.1
@openciti
Not possible, unless you include it as:
"pg": "^7.0.0"
, or didn’t re-install it properly after updating inpackage.json
.I also ran into this Node 8.11.1
#1638