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
A get request response with a 401 response status seems to only allow you to catch the error and the information provided is the following. TypeError: Failed to fetch.
In catch one does not appear to have access to the response object or status.
The text was updated successfully, but these errors were encountered:
sndsgn
changed the title
catch does not contain response object or status TypeError: Failed to fetchcatch does not contain response object TypeError: Failed to fetchApr 3, 2017
sndsgn
changed the title
catch does not contain response object TypeError: Failed to fetchcatch does not contain response object or response status TypeError: Failed to fetchApr 3, 2017
I can't tell if this was done intentionally for security purposes to not expose the response. However, I still believe the response status code should be provided in the catch. I will reopen as it seems to be a common need to capture the status code.
A get request response with a 401 response status seems to only allow you to
catch
the error and the information provided is the following.TypeError: Failed to fetch
.In
catch
one does not appear to have access to the response object or status.The text was updated successfully, but these errors were encountered: