Closed mykter closed 4 years ago
Thanks for reporting this. I'll make some time to investigate it this weekend.
I looked into this and it turns out the API returns an empty response body if there is no rating history for the user. I'll reach out to the lichess devs to make sure this is intentional and then also handle that situation more gracefully than an obtuse exception.
They agreed it was a bug. Should be fixed in production soon since it just got committed: https://github.com/ornicar/lila/commit/bea1b527885e06678eb0701540870a2b1a3857f1.
Nice!
Closing this as fixed!
$ curl -s -H "Accept: application/json" \
-H "Authorization: Bearer $LICHESS_TOKEN" \
https://lichess.org/api/user/AboodSalah/rating-history
[]
Description
When retrieving the rating history for a user, which works for many users, hit the following error. You can reproduce with user IDs A23012011 and AboodSalah.
What I Did