Hello. I'm using Node-RED with Docker, trying to run this flow below:
It's a simple flow: get some data from this postgres db, do something, then insert the data into this other postgres db. For the db interactions, I'm using node-red-contrib-postgresql.
This is how the node-red log looks like:
1 Sep 13:25:16 - [info] Node-RED version: v3.0.2
1 Sep 13:25:16 - [info] Node.js version: v16.20.1
1 Sep 13:25:16 - [info] Linux 5.15.90.1-microsoft-standard-WSL2 x64 LE
1 Sep 13:25:17 - [info] Loading palette nodes
1 Sep 13:25:19 - [info] Settings file : /data/settings.js
1 Sep 13:25:19 - [info] Context store : 'default' [module=memory]
1 Sep 13:25:19 - [info] User directory : /data
1 Sep 13:25:19 - [warn] Projects disabled : editorTheme.projects.enabled=false
1 Sep 13:25:19 - [info] Flows file : /data/flows.json
1 Sep 13:25:19 - [info] Server now running at http://127.0.0.1:1880/
1 Sep 13:25:19 - [warn]
(...)
1 Sep 13:25:19 - [info] Starting flows
1 Sep 13:25:19 - [info] Started flows
1 Sep 13:25:47 - [info] Stopping flows
1 Sep 13:25:47 - [info] Stopped flows
1 Sep 13:25:47 - [info] Updated flows
1 Sep 13:25:47 - [info] Starting flows
1 Sep 13:25:47 - [info] Started flows
1 Sep 13:39:40 - [red] Uncaught Exception:
1 Sep 13:39:40 - [error] Error: Connection terminated unexpectedly
at Connection. (/data/node_modules/pg/lib/client.js:132:73)
at Object.onceWrapper (node:events:627:28)
at Connection.emit (node:events:513:28)
at Socket. (/data/node_modules/pg/lib/connection.js:63:12)
at Socket.emit (node:events:513:28)
at TCP. (node:net:301:12)
No exception is caught by the catch:all node in my flow and Node-RED just terminates.
When I try to run the same flow, also with Docker, using my laptop, also with Docker, it works, it keeps running with no problems. For reference, this PC with the error uses Windows 10, my laptop uses Windows 11.
Any help would be very appreciated and I'm here to provide further information. Thanks!