-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hi.
We have updated our set up from
nodejs 14.4.0
Ubuntu 18.04.4 LTS
psql (PostgreSQL) 12.1
pg 8.2.1
to:
nodejs 16.1.0
Ubuntu 20.04.2 LTS
psql (PostgreSQL) 12.6
pg 8.6
After that, the pg connection started crashing.
Before the update, our code had been working properly for several years.
The error is floating. The error can appear several times a day, or maybe after a few days (7-8).
2021-05-29T09:42:16.192Z TypeError: Cannot read property 'handleRowDescription' of null
at Client._handleRowDescription (/home/user_name/node_modules/pg/lib/client.js:340:22)
at Connection.emit (node:events:365:28)
at Connection.emit (node:domain:470:12)
at /home/user_name/node_modules/pg/lib/connection.js:114:12
at Parser.parse (/home/user_name/node_modules/pg-protocol/dist/parser.js:40:17)
at Socket. (/home/user_name/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:365:28)
at Socket.emit (node:domain:470:12)
at addChunk (node:internal/streams/readable:314:12)
at readableAddChunk (node:internal/streams/readable:289:9) TypeError: Cannot read property 'handleRowDescription' of null
at Client._handleRowDescription (/home/user_name/node_modules/pg/lib/client.js:340:22)
at Connection.emit (node:events:365:28)
at Connection.emit (node:domain:470:12)
at /home/user_name/node_modules/pg/lib/connection.js:114:12
at Parser.parse (/home/user_name/node_modules/pg-protocol/dist/parser.js:40:17)
at Socket. (/home/user_name/node_modules/pg-protocol/dist/index.js:11:42)
at Socket.emit (node:events:365:28)
at Socket.emit (node:domain:470:12)
at addChunk (node:internal/streams/readable:314:12)
at readableAddChunk (node:internal/streams/readable:289:9)
Any advice?