reactjs - xhr options failed without statuscode -
i'm using react-axios in order handle http-requests. sporadically requests fail without status-code, error-message:
(failed) net::err_invalid_http_response
the error thrown @ xhr.js:175 is:
021: var request = new xmlhttprequest(); ... 175: request.send(requestdata);
the onerror function in xhr.js implemented this:
// handle low level network errors request.onerror = function handleerror() { // real errors hidden browser // onerror should fire if it's network error reject(createerror('network error', config)); // clean request request = null; };
the file located in node_modules folder: axios/lib/adapters/xhr.js. modify onerror function , add error parameter:
request.onerror = function handleerror(err) {...}
the err doesn't tell why error occurs, error far can see:
unfortunately can't see server-logging or debug rest-server. there way find out goes wrong requests?
Comments
Post a Comment