I am using axios for the first time and I encountered an error.
axios.get(
'http://someurl.com/page1?param1=1¶m2=${param2_id}'
)
.then(function(response) {
alert();
})
.catch(function(error) {
console.log(error);
});
With the correct URL and parameters, when I check the network requests, I really get the correct answer from my server, but when I open the console, I see that it does not call the callback, but instead it encounters an error.
Error: Network error stack trace: createError @ http: // localhost: 3000 / static / js / bundle.js: 2188: 15 handleError @ http: // localhost: 3000 / static / js / bundle.js: 1717: 14
source
share