Page 1 of 1

Getting rid of the console error essage on Rest response error

Posted: Wed Jul 20, 2016 2:59 pm
by Joni de Campos

I am developing a Web Application.

I am getting a console error message when make a Rest request in the login service without a password.

Although I have a Javascript to handle the error in the service error event, the console still shows an error:

Failed to load resource: the server responded with a status of.... 400 (Bad Request).

How do I get rid of the console error message.


Getting rid of the console error essage on Rest response error

Posted: Thu Jul 21, 2016 10:16 am
by Serhii Kulibaba

Hello Joni,

Please use JS below on the error event of the login service:
preconsole.log(jqXHR.responseJSON.description);/pre


Getting rid of the console error essage on Rest response error

Posted: Sat Jul 23, 2016 5:56 pm
by Joni de Campos

Still shows an error in the console....shouldn't not show this message ?

Image


Getting rid of the console error essage on Rest response error

Posted: Mon Jul 25, 2016 4:59 am
by Yurii Orishchuk

Hi Joni,

This error means you have incorrect response for this service.

Please click on this request, you will be redirected to "network" tab - there you can investigate a request and response.

In response you can find a reason why server returns an error.

Regards.