Hello,
as we use CaptainCasa in a SaaS scenario, with many different customers, where we have no influence on their it infrastructure, we often face some http errors on client side.
If an error occures, client doesn't get back a valid CaptainCasa XML but a html document like this (containing information on this error).
Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>
This leads to a XML-Parser error on client side. (as you can see in Screenshot)
so perhaps it might be possible to check response for error pages like this if parsing fails?