Closed utdrmac closed 6 years ago
I have similar problem
File "lendingbot.py", line 94, in <module>
Lending.lend_all()
File "/data/www/poloniexlendingbot/modules/Lending.py", line 247, in lend_all
usable_currencies += lend_cur(cur, total_lent, lending_balances, ticker)
File "/data/www/poloniexlendingbot/modules/Lending.py", line 418, in lend_cur
orders = construct_orders(active_cur, active_bal, active_cur_total_balance, ticker) # Build all potential orders
File "/data/www/poloniexlendingbot/modules/Lending.py", line 319, in construct_orders
top_rate, bottom_rate = get_gap_mode_rates(cur, cur_active_bal, cur_total_balance, ticker)
File "/data/www/poloniexlendingbot/modules/Lending.py", line 373, in get_gap_mode_rates
top_rate = get_gap_rate(cur, top_depth, order_book, cur_total_balance, True)
File "/data/www/poloniexlendingbot/modules/Lending.py", line 306, in get_gap_rate
return Decimal(order_book['rates'][i])
IndexError: list index out of range
v311 Unhandled error, please open a Github issue so we can fix it!
Again, I think this is a corrupted DB.
How can the DB be corrupted between intervals? It's not like the db corrupts and then the bot crashes. You get these randomly but everything continues working again a few cycles later.
Lots of reports for this same error recently. We should either:
The second one is likely better. And it appears that the error just coincidentally appeared alongside some DB work.
Two instances where you get an off by one error due to comparing an iterator to the length. Oops. Fix coming shortly.
Config: http://termbin.com/anja