authenticate outgoing lichess.org requests to fix silent 404s on games/user
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 12s

Lichess started rejecting anonymous requests to games/user and
user/activity with a 404 (confirmed live: the same request with a valid
bearer token got a normal 429 instead), which our code silently read as
"user has no games" for every single tracked player, making periodic
checks report zero activity across the board. Add LICHESS_APP_TOKEN and
send it as a Bearer token on these two calls; it just needs to be any
valid token; it does not need to belong to the tracked player.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-07-25 23:01:35 +00:00
parent 08f97d413a
commit 7ef5875f58
4 changed files with 27 additions and 3 deletions

View file

@ -6,6 +6,8 @@ services:
container_name: lichess-api
ports:
- "8002:8000"
env_file:
- .env
environment:
- PYTHONUNBUFFERED=1
volumes: