Game not found
What is the problem?
After the last update, I tried to open some games in rare variants. And sometimes, I manage to catch the error "game not found". I tried to reproduce the error in version 0.10.1 and noticed that the game that was not found in version 0.10.3 simply does not open in version 0.10.1 on iPhone, as in the error https://github.com/lichess-org/mobile/issues/984.
The game in which the error occurs (1. e4 c6 2. a3): https://lichess.org/cLAh6fkU
Another example in which the error occurs (1. d4 d5 2. Bf4 Bf5 3. Nc3 a6): https://lichess.org/8UyzPgSE
If you close the app and open the game again, entering the moves from the example, the game may open. For me, this happened after the 3rd restart.
https://github.com/user-attachments/assets/3a50393c-347e-4a12-bbd8-5589347eac47
https://github.com/user-attachments/assets/6cb591d9-bd9b-455d-b7ff-1b6c94a65c7b
Steps to reproduce the bug
- Open new Lichess Beta app
- Open Opening Explorer
- Enter the moves as in the example or try other rare moves. Try opening games until you encounter the error.
App version
0.10.3
Device Info
Pixel 8 / Android 14
Additional information
No response
I tried to reproduce this bug on iPhone and it worked. Is it related to opening many games in a short time? Before I got this bug I opened 9-10 games in a short time.
The cause of the problem is the master game is potentially not yet imported into lichess. See above server issue.
Should be easy to fix:
how about you call GET /import/master/$id<\w{8}>/:color first then GET /game/export/
. that's 2 requests but:
it's a relatively rare use case that's what the browser client also does
Thanks for pointing the server issue.
By calling /import/master before it, /game/export no longer 404.
I would like to work on this.