Hi,
Found an issue with the error reporting, on this line in particular:
|
$body = \GuzzleHttp\json_decode($e->getResponse()->getBody(), true); |
We've got some errors returned in plain HTML, which (obviously) failed to be json_decoded

This might be a server issue more than the SDK, however that would be good to be able to handle a non-json error as well, as for not it just throws a PHP error, and I had to manually edit the package on prod to be able to see what was happening
Cheers,
Hi,
Found an issue with the error reporting, on this line in particular:
php-sdk/src/Hyperwallet/Util/ApiClient.php
Line 178 in 225462e
We've got some errors returned in plain HTML, which (obviously) failed to be
json_decodedThis might be a server issue more than the SDK, however that would be good to be able to handle a non-json error as well, as for not it just throws a PHP error, and I had to manually edit the package on prod to be able to see what was happening
Cheers,