Steem Load Balancer: Fix a Crash due to BadRequestError

in Witness Activities21 hours ago

Yesterday, https://steem.justyy.com crashed and showed "No valid node found".
6bdacb467e325e51bfa0af52db6a40d4.png

I've checked the log and it has thrown a "BadRequestError: request aborted" Error

48e075a8895804ae6e35a35f43d65787.png

I've checked with ChatGPT, and here is the proper fix to avoid parsing the JSON twice (and forcing every request to be JSON)

https://github.com/DoctorLai/steem-load-balancer/commit/ec8397d7ae4b4aeb79dcb1dfd2d9d9887b4d2c3c
image.png

I've deployed to both https://steem.justyy.com and https://api.steemyy.com and also uploaded a prebuilt image to: justyy/steem-load-balancer

image.png

Steem to the Moon🚀!