P
P
paketik0chaya2017-04-18 15:43:04
JavaScript
paketik0chaya, 2017-04-18 15:43:04

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

2 answer(s)
P
paketik0chaya, 2017-04-20
@paketik0chaya

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 > .

I
Ivan, 2017-04-18
@LiguidCool

Error "Network Error".

The concept is flexible. More details.
Did you register Origin ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question