Hi. I'm writing wrapper for YandexKassa API and realized that sometimes I get JSON::ParserError for failed requests. It happens because API responds with HTML page. So, in this case it is impossible to parse JSON from HTML and I guess it would be nice if we just use raw response body.
Hi. I'm writing wrapper for YandexKassa API and realized that sometimes I get
JSON::ParserError
for failed requests. It happens because API responds with HTML page. So, in this case it is impossible to parse JSON from HTML and I guess it would be nice if we just use raw response body.