lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.65k stars 2.28k forks source link

API: User ratings perf endpoint broken #11976

Closed jalpp closed 1 year ago

jalpp commented 1 year ago

Exact URL where the bug happened https://lichess.org/api/user/{username}/perf/{perf} Steps to reproduce the bug hit the endpoint above to get blitz/rapid/random perf rating for any user What did you expect to happen? get the ratings What happened instead? got rating as ? and error on browser Operating system and browser version IOS Firefox and Safari

my bot unable to hit this endpoint returns ? for ratings even though all ratings show on Lichess errorli2 when hitting the endpoint on browser returns an error errorli1

benediktwerner commented 1 year ago

The "in the browser" screenshot you posted is simply an incorrect URL. It still has a leftover encoded } in the username, hence the "404 Not found" response. But yeah, the endpoint currently times out after like 30s or a minute and shows the timeout error page.

jalpp commented 1 year ago

yeah, sorry for that mistake, but my bot's code with handling errors on Lichess side is right, seems like the perf ratings are not present at all thus throwing ? for all ratings in Discord reply https://github.com/jalpp/LichessSearchEngineBot/blob/master/src/main/java/UserProfile.java#L27