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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -