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
Hi,
Found an issue with the error reporting, on this line in particular: https://github.com/hyperwallet/php-sdk/blob/225462eea684736d34ed9a837acf52631ef79394/src/Hyperwallet/Util/ApiClient.php#L178
We've got some errors returned in plain HTML, which (obviously) failed to be
json_decode
dThis 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,