This PR fixes an issue introduced by our node upgrade - previously, the default error handling behaviour on unhandledRejection was to warn, but this was changed to throw in node 15 (see here), which doesn't play well with our existing express error handler. This PR sets it back to warn so that unhandled errors no longer crash our server.
Problem
This PR fixes an issue introduced by our node upgrade - previously, the default error handling behaviour on
unhandledRejection
was towarn
, but this was changed tothrow
in node 15 (see here), which doesn't play well with our existing express error handler. This PR sets it back towarn
so that unhandled errors no longer crash our server.