Closed jalpp closed 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.
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
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 when hitting the endpoint on browser returns an error