You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. setupExpressErrorHandler and similar handlers generally ignore errors <500. We should document which errors are captured/ignored by default, as well as how to change this, if necessary.
Suggested Solution
For example, in Express we look at any of the fields status, statusCode, status_code and output.statusCode, and if either of them is set and <500, we will ignore the error. This should be clearly documented somewhere, as well as explaining how a custom shouldHandleError method can be passed in.
The text was updated successfully, but these errors were encountered:
SDK
JavaScript SDK
Description
E.g.
setupExpressErrorHandler
and similar handlers generally ignore errors <500. We should document which errors are captured/ignored by default, as well as how to change this, if necessary.Suggested Solution
For example, in Express we look at any of the fields
status
,statusCode
,status_code
andoutput.statusCode
, and if either of them is set and <500, we will ignore the error. This should be clearly documented somewhere, as well as explaining how a customshouldHandleError
method can be passed in.The text was updated successfully, but these errors were encountered: