Skip to content

Add global Express error handler and graceful shutdown to API Gateway#117

Merged
Senthil455 merged 1 commit into
mainfrom
fix/issue-44-error-handler
Jun 17, 2026
Merged

Add global Express error handler and graceful shutdown to API Gateway#117
Senthil455 merged 1 commit into
mainfrom
fix/issue-44-error-handler

Conversation

@Senthil455

Copy link
Copy Markdown
Owner

Add a global error handler middleware to catch unhandled errors from async route handlers, preventing Node.js 20+ process crashes on unhandled rejections. Also add SIGTERM/SIGINT handlers for graceful HTTP server shutdown.

@Senthil455 Senthil455 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds the two missing Express patterns: global error handler middleware to catch unhandled async errors, and graceful shutdown on SIGTERM/SIGINT. Clean implementation.

@Senthil455 Senthil455 merged commit 0d524b3 into main Jun 17, 2026
2 of 20 checks passed
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

Successfully merging this pull request may close these issues.

1 participant