This repository has been archived by the owner on Jun 29, 2023. It is now read-only.
Crash/exit Hubble Node process and other scripts/entrypoints on UnhandledPromiseRejections #613
Labels
client
This PR is about implementing the client
Problem
When an unhandled promise rejection occurs in the Hubble Node process (and likely any of our scripts/other entry points), a warning is logged out but does not prevent the process from continuing, such as in #612 . This can lead to suppression of critical bugs/issues.
Solution
Set NodeJS --unhandled-rejections=strict to exit node process when an unhandled promise rejection occurs. We should do this in the Docker image
CMD
line, and the numerous spots wherets-node
is called. Ideally this can be done inpackage.json
,tsconfig.json
, or some other config file.The text was updated successfully, but these errors were encountered: