Getting rid of the console error essage on Rest response error

This forum contains topics that were moved from Get Satisfaction
Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

Getting rid of the console error essage on Rest response error

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

Serhii Kulibaba
Posts: 147
Joined: Tue Aug 27, 2013 1:47 pm

Getting rid of the console error essage on Rest response error

Post by Serhii Kulibaba »

Hello Joni,

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

Joni de Campos
Posts: 0
Joined: Fri Dec 11, 2015 12:21 pm

Getting rid of the console error essage on Rest response error

Post by Joni de Campos »

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

Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Getting rid of the console error essage on Rest response error

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

Post Reply