tobymao / 18xx

A platform for playing 18xx games online!
https://18xx.games
Other
274 stars 179 forks source link

[18ESP] Cannot "Undo" or "Restart Last Turn" #10954

Open darkotuskan opened 3 weeks ago

darkotuskan commented 3 weeks ago

What's your Game ID? Game ID: 162478 https://18xx.games/game/162478

How to Reproduce the Bug? Anytime Undo or Restart Last Turn is pressed, the game initially seems to accept the action, but then after a few seconds, an error appears in a pink banner stating: "The server did not accept this action due to: {}... refreshing" and then the game automatically refreshes to the state before undo or restart turn was pressed.

Screenshot 2024-06-23 at 12 50 38 PM
Which Browser / Platform? Chrome Google Chrome 126.0.6478.63 (Official Build) (x86_64)
Revision df799988fdc9c52db48650316d53800b1e9aa69e-refs/branch-heads/6478_56@{#5}
OS macOS Version 14.5 (Build 23F79)
JavaScript V8 12.6.228.16
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Command Line /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --restart --flag-switches-begin --flag-switches-end
Executable Path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

On a Desktop

benjaminxscott commented 2 weeks ago

I suspect there's a timeout being hit somewhere in the code, as it takes a while to load the game state (~1200 actions)

Would kinda make sense since the error string is nil, if there's no actual error being thrown