mobile icon indicating copy to clipboard operation
mobile copied to clipboard

Game not found

Open aslyamov opened this issue 1 year ago • 2 comments

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

  1. Open new Lichess Beta app
  2. Open Opening Explorer
  3. 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

aslyamov avatar Sep 10 '24 18:09 aslyamov

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.

aslyamov avatar Sep 12 '24 08:09 aslyamov

The cause of the problem is the master game is potentially not yet imported into lichess. See above server issue.

veloce avatar Sep 12 '24 09:09 veloce

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

veloce avatar May 17 '25 18:05 veloce

Thanks for pointing the server issue.

By calling /import/master before it, /game/export no longer 404.

I would like to work on this.

dl8sd11 avatar Jun 14 '25 06:06 dl8sd11