Answer the question
In order to leave comments, you need to log in
Axios request not working Why?
Problem - axios-request does not cling to the server. "Network Error" error. Other queries work. What could be the problem?
Gist of this request: https://gist.github.com/anonymous/97fe7fb3cdd1b119...
Gist of working requests:
https://gist.github.com/anonymous/3664a9d65e5918a9...
https://gist.github.com/ anonymous/4c9b431e0d420231...
Answer the question
In order to leave comments, you need to log in
Fixed - the type of the < button > button on the machine is "submit", so the button refreshed the page and the request did not work.
You need to define the button type: < button type="button" onClick=... > ... </button > .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question