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:

enter image description here

unfortunately can't see server-logging or debug rest-server. there way find out goes wrong requests?


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -