Deployed my bot in heroku and sometimes bot crashes due to this error
binance.exceptions.BinanceAPIException: APIError(code=0): Service unavailable from a restricted location according to ‘b. Eligibility’ in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error.
When i restart the bot it runs smoothly again.How can i solve this?
Hi Vamsi, could you please clarify the root cause? I don’t use ccxt.binanceUS but meet the same error, very confused. BTW what do you mean ‘ccxt.binance’ ? Thank you.
I don’t use ccxt and I meet the same error recent days. I’m not a US resident but deploy my bot on the server located in California. The weird part is, that error never occurred in the past few months. It only shows up in the past few days, and each time it lasts no more than 30 min. 30 min later, evverything goes normal as usual.
@David@Raymond Even i got the same error again, talked with few people in Telegram API Channel, 5 of them confirmed they are getting the same error between 12:00 UTC to 12:30 UTC, i can confirm the same.Bot is working fine after 12:30 UTC
@Vamsi_Krishna_Gannam Thanks for updating. For now, my temporary solution is to modify my bot to skip this error and retry a moment later, until it turns good
Today the error came up again. I tried to call API from 2 different IP at the same time with same API key, one located in California, another located in Asia country. The former one received the error, and the latter one worked fine. Tried 2 times got the same result. So the error is likely caused by IP location (IP from restricted location).
Thanks @Vamsi_Krishna_Gannam and @Raymond, yes, I can confirm this is because US IP is blocked, as I have another server in Asia and working fine. But this is still ridiculous because sometimes it works fine and sometimes it pops the error.
Facing with the same issue, however I really wonder when this is announced as this is not a simple change that many users will be affected by such a restriction.