RPC Timeout promise rejection seemingly not handled cleanly #72

Open
opened 2021-03-12 15:46:41 +00:00 by Ghost · 0 comments

When deployed using greenlock-express with cluster: true, I see numerourour occurences of:

(node:65) UnhandledPromiseRejectionWarning: Error: worker rpc request timeout
at Timeout._onTimeout (/app/node_modules/greenlock-express/worker.js:70:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:65) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9)
(node:112) UnhandledPromiseRejectionWarning: Error: worker rpc request timeout
at Timeout._onTimeout (/app/node_modules/greenlock-express/worker.js:70:20)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
(node:112) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 13)

Upon initial inspection of the codebase, it appars that the greenlock-express implementation of Node Cluster, is mant to handle these insances internally, by cleanly killing off and re-spawning unresponsive workers. If this is not the intent, then it becomes important for greenlock-express to expose he underlying cluster object (which a review of the codebase suggests, it currently does not), so these events can be captured and properly handled.

When deployed using greenlock-express with cluster: true, I see numerourour occurences of: (node:65) UnhandledPromiseRejectionWarning: Error: worker rpc request timeout at Timeout._onTimeout (/app/node_modules/greenlock-express/worker.js:70:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:65) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 9) (node:112) UnhandledPromiseRejectionWarning: Error: worker rpc request timeout at Timeout._onTimeout (/app/node_modules/greenlock-express/worker.js:70:20) at listOnTimeout (internal/timers.js:554:17) at processTimers (internal/timers.js:497:7) (node:112) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 13) Upon initial inspection of the codebase, it appars that the greenlock-express implementation of Node Cluster, is mant to handle these insances internally, by cleanly killing off and re-spawning unresponsive workers. If this is not the intent, then it becomes important for greenlock-express to expose he underlying cluster object (which a review of the codebase suggests, it currently does not), so these events can be captured and properly handled.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: root/greenlock-express.js#72
No description provided.