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
When users are facing network issues, they're reported with noisy ECONNRESET errors or similar, shown with a full stack trace.
This looks like a bug in our application, when it isn't (it's either issue with user connection or a temporary problem with the external service they're trying to access).
It'll be nice to output a clear message signaling the network issue.
Proposed solution
In logError logic detect if we deal with network error and show a meaningful error message.
Detection should recognize errors by error codes (list of codes)
Network error should be reported with a message as follows:
{original error message (no stack trace)}
It's either problem with your internet connection or temporary unavailability of external service.
If your internet connection is stable and given problem repeats for a longer period please report the problem an issue tracker of remote service you're relying on
@chrisVillanueva your proposal looks great. It's just that we detect network errors by codes not names (error.code property), but it's definitely this direction.
Use case description
When users are facing network issues, they're reported with noisy
ECONNRESET
errors or similar, shown with a full stack trace.This looks like a bug in our application, when it isn't (it's either issue with user connection or a temporary problem with the external service they're trying to access).
It'll be nice to output a clear message signaling the network issue.
Proposed solution
In logError logic detect if we deal with network error and show a meaningful error message.
Detection should recognize errors by error codes (list of codes)
Network error should be reported with a message as follows:
Related issues: #7732, #7572, #7596, #8225
The text was updated successfully, but these errors were encountered: