If the API returns a non-200 status with some HTML, then it parses as XML but the resp is unuseable and there is no error so our service is panicking. I added a check for non-200 and a response that contains no status (invalid XML). I also added tests to cover all of these cases.
If the API returns a non-200 status with some HTML, then it parses as XML but the
resp
is unuseable and there is no error so our service is panicking. I added a check for non-200 and a response that contains no status (invalid XML). I also added tests to cover all of these cases.