When used with node-red-contrib-crate, node-red crashes when the database is unavailable.
The cause is an unexpected socket hangup because error events on the request are not handled.
This commit rejects the promise, and calls 'req.end()' to prevent an unexpected socket hangup.
Hi,
When used with node-red-contrib-crate, node-red crashes when the database is unavailable. The cause is an unexpected socket hangup because error events on the request are not handled. This commit rejects the promise, and calls 'req.end()' to prevent an unexpected socket hangup.
Regards,
Gert