Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node-RED crashes when Postgres terminates connection unexpectedly due to out of memory error #97

Open
marcus-clements opened this issue Jan 9, 2025 · 0 comments

Comments

@marcus-clements
Copy link

This looks related to #50

Node-RED v14.2
node.js v22.11.0

I am executing a query that occasionally causes an out of memory error in Postgres. This throws an uncaught exception which crashes Node-RED

8 Jan 16:29:16 - [error] [postgresql:Foo Query] error: out of memory
8 Jan 16:29:16 - [red] Uncaught Exception:
8 Jan 16:29:16 - [error] Error: Connection terminated unexpectedly
    at Connection.<anonymous> (/data/node_modules/pg/lib/client.js:131:73)
    at Object.onceWrapper (node:events:632:28)
    at Connection.emit (node:events:518:28)
    at Connection.emit (node:domain:489:12)
    at Socket.<anonymous> (/data/node_modules/pg/lib/connection.js:62:12)
    at Socket.emit (node:events:530:35)
    at Socket.emit (node:domain:489:12)
    at TCP.<anonymous> (node:net:343:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant