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
It is seen here, that we evaluate response.data identically for 'success' & error response codes.
In case of 404 error and when await response.text() === '', reading await response.json() throws an error
SyntaxError: Unexpected end of JSON input
The default axios XHR adapter behaves differently & won't throw in this case. With this adapter I have to look into caught error message text at this point.
The text was updated successfully, but these errors were encountered:
It is seen here, that we evaluate
response.data
identically for 'success' &error
response codes.In case of
404
error and whenawait response.text() === ''
, readingawait response.json()
throws an errorThe default
axios
XHR adapter behaves differently & won't throw in this case. With this adapter I have to look into caught error message text at this point.The text was updated successfully, but these errors were encountered: