MikaLendingBot icon indicating copy to clipboard operation
MikaLendingBot copied to clipboard

API Error 429 ,502

Open k0ni opened this issue 7 years ago • 5 comments

Hey guys I'm having some problems using the bot (it's great BTW). I'm guessing this is somehow related to the DDOS protection of the site , maybe I'm wrong . anyway anyone facing the same problem? or have any idea for solution? i get this errors when the bot trying to get so info from bitfinex... Error API Error 502: The web server reported a bad gateway or gateway timeout error. Requesting https://api.bitfinex.com/v1/history

Error HTTPSConnectionPool(host='api.bitfinex.com', port=443): Read timed out. (read timeout=30) Requesting https://api.bitfinex.com/v1/balances

k0ni avatar Dec 06 '17 14:12 k0ni

Related to the DDOS... timeout, you can increase the timeout in your config up to 90sec but it might not solve the issue as it is on Bitfinex side.

rnevet avatar Dec 06 '17 14:12 rnevet

Now i'm experiencing also and mostly API Error 429: { "error": "ERR_RATE_LIMIT" }. anyone knows why is that? anyone have the same errors?

k0ni avatar Dec 06 '17 21:12 k0ni

If you turn off the AccountStats plugin it will help, but if you need / want the account stats, then just let the bot run and it will eventually fix itself.

We're looking at a fix for this issue now.

laxdog avatar Dec 14 '17 17:12 laxdog

Any update on this error? Would like to bring in the AccountStats history but it times out and errors 429 before it gets a chance. Thanks!

btclending avatar Apr 29 '18 20:04 btclending

@btclending @k0ni 429 are errors from the exchange saying you are sending too many API calls. This is normal and happens to everyone. It is a temporary ban. The bot is designed to sleep for a certain period and wait for the ban to lift and then start again. Checkout #632 and see if that helps; it did for me.

utdrmac avatar Jul 06 '18 16:07 utdrmac