ornicar/lichess — Issue #35: Black can't move after white's seventh move - MongoCursorException: bad hint
Author: covenantd
Created: 2011-10-19 22:50:44+00:00
State: open

Sidenote: This seems like it might be related to #17 and I found the README version with the doctrine command to build the mongodb indices (https://github.com/ornicar/lichess/blob/1c59fa6bc976bad7a808433cabb8bb1f0ce0b156/README.markdown), but lichess/console doesn't exist anymore and by then I was wondering why it was removed from the README, etc....

Anyway, on to the specific problem - when running playing a game between two human players (doesn't happen vs. machine), after the seventh move by white, when black tries to move it instead refreshes the screen and reloads the board without the move made. Try any move and it just does the same thing again.

Watching the prod.log file at the same time, each attempted move throws:
[2011-10-19 09:23:02] request.CRITICAL: MongoCursorException: bad hint (uncaught exception) at //lichess/vendor/doctrine-mongodb/lib/Doctrine/MongoDB/Cursor.php line 133 [] []

When I tracked the network calls, I saw the POST going to the /move/... URL was throwing back a 500 error too.

Ideas?