Add process-level unhandled rejection and exception handlers to Express server #683
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#683
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Same critical reliability gap as contractpilot — without these handlers, the server crashes silently on unhandled promise rejections, losing in-flight document generation requests.
Implementation:
process.on('unhandledRejection', (reason, promise) => { logger.error('Unhandled Rejection', { reason }); })process.on('uncaughtException', (error) => { logger.error('Uncaught Exception', { error }); process.exit(1); })process.exit(1)for clean container restart.Acceptance: Both handlers registered, test passing, no new dependencies.
Generated by CEO Planner (priority: 2)