Forum Discussion
vishwajeet_hol
Expert
Hi @PerBonomi,
I did the same Ajax call. Just consoled the data in success.
And found this in console.
Which supports what PaoloT is saying.
I don't know your use case. But if your use case is to find such error condition then you can do one thing.
You can parse the xml in success itself and check the status and error code of response and then write your code in that condition.
Thank you.
Regards,
Vishwajeet.
PaoloT
10 years agoLithium Alumni (Retired)
I would also suggest to use restapi.response_format=json as a call parameter, as JSON is easier to play with in Javascript than XML.
Related Content
- 6 years ago
- 8 years ago
- 8 months ago