krakenfx / kraken-api-client

Example client libraries for use with the kraken.com API.
MIT License
88 stars 94 forks source link

Catch HTTP 4xx and 5xx errors #4

Closed kravco closed 1 year ago

kravco commented 7 years ago

This patch attepts to fix problem, when http request to kraken api gets 504 gateway timeout response. This happens from time to time, but before this patch, any HTTP 4xx/5xx error is reported as "JSON decode error" which is fairly inaccurate and hard to distinguish from actual decode errors.

cleehamilton commented 7 years ago

I am getting this JSON decode Error a lot lately. Is the fix to replace with your code or is the "KrakenAPIClient.php" file updated and I can copy and paste that?

kravco commented 1 year ago

Closing, since project is inactive