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

Add status code information in case of network errors #338

Open
regexrowboat opened this issue Nov 1, 2016 · 1 comment
Open

Add status code information in case of network errors #338

regexrowboat opened this issue Nov 1, 2016 · 1 comment

Comments

@regexrowboat
Copy link
Member

Currently, JavaScript SDK logs status code 0 when the connection between the client and server cannot be resolved. This makes diagnosing network errors very difficult, as there are many different problems that can cause 0 status code in failing dependency calls.

The proposal is to log status code information that indicates whether a network error occurred and what type.

@MSNev
Copy link
Collaborator

MSNev commented Jan 12, 2023

The actual status code is (or should) already be logged, I'm not sure about the status text.

Generally, though the status code of "zero" means that this is the value returned to JavaScript in these scenario's, I've linked this with a new request about tracking whether the client code explicitly cancelled (called abort() on the XHR for example) to help provide additional information when available. When that item gets worked on this request will be reviewed as well.

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

No branches or pull requests

3 participants