midoshouse / ootr-multiworld

An alternative implementation of multiworld for the Ocarina of Time randomizer
https://midos.house/mw
MIT License
9 stars 1 forks source link

Unable to join some rooms while signed in #36

Closed fenhl closed 10 months ago

fenhl commented 10 months ago

If the app is launched while the config file contains an expired login token, the server will become unresponsive, causing nothing to happen when attempting to join or create a room.

Workaround

Sign out by removing the login_tokens entry from the configuration file at %APPDATA%\Fenhl\OoTR Multiworld\config\config.json (Windows) or $XDG_CONFIG_HOME/midos-house/multiworld.json (Linux). You can then sign back in, but the bug will come back after a day or so. Login tokens from racetime.gg expire faster than those from Discord, so signing in via Discord will make the bug occur less frequently.

fenhl commented 10 months ago

I've been able to reproduce this bug now. It's caused by the server not handling expired login tokens correctly and leaving the WebSocket connection in an inconsistent state. Working on a fix now.

fenhl commented 10 months ago

The latest release now gives a proper error message instead of silently breaking. Still working on a proper fix.