HIGH: No process-level unhandledRejection/uncaughtException handler #73

Closed
opened 2026-05-31 12:03:14 -05:00 by null · 1 comment
Owner

Bug Description

server.js has no process.on(unhandledRejection) or process.on(uncaughtException) handlers. Combined with the async routes lacking try/catch (see #68), any unhandled promise rejection from Express 4 async handlers will crash the process with no structured error reporting.

The only process exit points are in the main() catch block for startup failures.

Affected Files

  • server.js (missing)

Impact

Silent process crashes in production with no structured logging. Difficult to diagnose recurring crashes.

Add:
process.on(unhandledRejection, (reason, promise) => { logger/error tracking });
process.on(uncaughtException, (err) => { logger/error tracking; graceful shutdown });

## Bug Description server.js has no process.on(unhandledRejection) or process.on(uncaughtException) handlers. Combined with the async routes lacking try/catch (see #68), any unhandled promise rejection from Express 4 async handlers will crash the process with no structured error reporting. The only process exit points are in the main() catch block for startup failures. ## Affected Files - server.js (missing) ## Impact Silent process crashes in production with no structured logging. Difficult to diagnose recurring crashes. ## Recommended Fix Add: process.on(unhandledRejection, (reason, promise) => { logger/error tracking }); process.on(uncaughtException, (err) => { logger/error tracking; graceful shutdown });
null added the
priority:high
backend
bug
labels 2026-05-31 12:03:14 -05:00
Author
Owner

close v0.34.2.1 (line 155)

close v0.34.2.1 (line 155)
null closed this issue 2026-05-31 13:14:17 -05:00
Sign in to join this conversation.
No Milestone
No project
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: null/BillTracker#73
No description provided.