When I duplicate records, let the login in php display a normal error, but when I receive it in axios, an error is indicated there as Error: Request failed with status code 500. Or for these tasks between junction with the backend is node js?
- Show an example of "normal error" for the uninitiated. add line breaks. use back quotes to highlight errors. stackoverflow.com/editing-help#code-spans . - qwabra
- In the controller, instead of throw new Exception, return the Json answer with an error, and in the reactant just parse the Json and output. And if there is no error, we simply return the status 200 - Sasha Borichevsky
- Well, as I understand it there are different languages and, therefore, these are not docking with errors. I guess - Ruslan
- you can return json as described above, but I think that you simply do not process the reject - promise state, this is where you can get an error and process it - xFloooo
|