All Collections
Trading Errors & Troubleshooting
Why do I see 'http error. HTML returned when expecting JSON'?
Why do I see 'http error. HTML returned when expecting JSON'?
Pete Darby avatar
Written by Pete Darby
Updated over a week ago

The 'http error. HTML returned when expecting JSON' is a general message for multiple errors at the crypto exchanges and happens when, for example Kraken returns a 504 Cloudflare page. The page returned is HTML, but we expect JSON to be returned from the API.

Instead of saving the complete HTML response received from the crypto exchange, we save this message in the log. You will also see what the trading bot was trying to do, because you will see another error message. For example: 'Could not get balances'. This means that when trying to get the balances, the HTML error page was returned and therefore the "get balances" task failed.

This error happens a lot with Kraken trading bots, but also with Poloniex. You do not have to do anything when this occurs. The trading bot will keep on trying to reach the API and continue its work.

Did this answer your question?