Closed FatFritz2 closed 1 year ago
The lichess servers limit how many challenges a bot can issue per day. Your bot has hit that limit, so lichess.org is rejecting an further challenges until the number of challenges in the past 24 hours falls below some limit.
Are you running multiple concurrent instances of lichess-bot?
No I just use 1 instance
2023-06-03T13:06:02.531695+00:00 app[worker.1]: [06/03/23 13:06:02] INFO Challenging a random bot matchmaking.py:156
2023-06-03T13:06:02.533570+00:00 app[worker.1]: INFO Seeking rated game with opponent matchmaking.py:111
2023-06-03T13:06:02.533571+00:00 app[worker.1]: rating in [600, 4000] ...
2023-06-03T13:06:05.672549+00:00 app[worker.1]: [06/03/23 13:06:05] ERROR No suitable bots found to matchmaking.py:144
2023-06-03T13:06:05.672559+00:00 app[worker.1]: challenge.
2023-06-03T13:06:05.673724+00:00 app[worker.1]: INFO Will challenge None for a rated matchmaking.py:159
2023-06-03T13:06:05.673724+00:00 app[worker.1]: game.
2023-06-03T13:06:05.674714+00:00 app[worker.1]: INFO Challenge id is None. matchmaking.py:161
The fastest way to fix this is to turn off lichess-bot for at least a few hours, a day to be certain. That way, the count of challenges will be zero and there will be no limits. Lichess-bot keeps a record of the challenges in the past 24 hours in the file daily_challenge_times.txt. If this list grows too long, lichess-bot will slow down the rate of issuing challenges. That should prevent future rate limiting, even if lichess-bot needs to be restarted.
Is this still a problem?
I tried to create a new token and it worked :D