Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle unhandled nodejs rejections #2080

Merged
merged 3 commits into from
Dec 7, 2022

Conversation

halfwhole
Copy link
Collaborator

@halfwhole halfwhole commented Nov 14, 2022

Problem

Unhandled rejections can arise due to situations like in #2074. In the event that such a situation occurs and we've upgraded to node 16, unhandled rejections will cause node to crash.

Solution

Handle unhandled rejections in the node process, preventing the process from crashing.

Screenshot (after) for a sample logger error message, when there's an unhandled rejection:
Screenshot 2022-11-14 at 5 18 28 PM

Deploy notes

Post-deploy: create datadog metric for unhandled nodejs rejections

@halfwhole halfwhole changed the title fix: handle unhandled rejections fix: handle unhandled nodejs rejections Nov 14, 2022
src/server/index.ts Outdated Show resolved Hide resolved
@halfwhole halfwhole force-pushed the fix/handle-unhandled-rejections branch from f599a0b to 94f6e83 Compare December 7, 2022 02:51
@halfwhole halfwhole merged commit 9f0614d into develop Dec 7, 2022
@halfwhole halfwhole deleted the fix/handle-unhandled-rejections branch December 7, 2022 08:39
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.

3 participants