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
isomorphicFetch(url, options)
.then(
(response) => {
// ... check status, do something for ok, do something otherwise
},
(error) => {
// ... some network issue with the call
}
);
I have an issue with the error handler, more exactly with the error parameter. It has no information whatsoever about what went wrong. All I can get from it is:
TypeError: NetworkError when attempting to fetch resource.
I have some code deployed in production who fails when calling a backend server with the above code and enters the error handler. The backend server actually responds correctly but then something happens to the response. The same applications deployed locally and in other environments have absolutely no issue, they work fine.
I cannot debug this because in lack of details of what went wrong. I can't even inspect network traffic since everything is over HTTPS. It's a complete dead end.
Is there a way to expose the cause of the error? Get some more details? Debug this somehow? Why isn't the error parameter exposing some cause?
The text was updated successfully, but these errors were encountered:
I have the same problem. When error 401 occurs I get just:
TypeError: Failed to fetch(…) - in Chrome
TypeError: Network request failed - in IE11
etc.
And there is no way that I can figure out that an error was caused because user was not authenticated (session expired) so I can not redirect user to the login page when session expires.
Is there a way to figure out which error occurred (since it does not enter the (response) => {...} function)?
I have some code like:
I have an issue with the error handler, more exactly with the
error
parameter. It has no information whatsoever about what went wrong. All I can get from it is:I have some code deployed in production who fails when calling a backend server with the above code and enters the error handler. The backend server actually responds correctly but then something happens to the response. The same applications deployed locally and in other environments have absolutely no issue, they work fine.
I cannot debug this because in lack of details of what went wrong. I can't even inspect network traffic since everything is over HTTPS. It's a complete dead end.
Is there a way to expose the cause of the error? Get some more details? Debug this somehow? Why isn't the
error
parameter exposing some cause?The text was updated successfully, but these errors were encountered: