Theod0reWu / Trivial

A gameshow quiz game powered by Gemini to create trivia questions and answers.
https://trivial-ai.vercel.app/
MIT License
0 stars 1 forks source link

server startup causing crashes #13

Closed Theod0reWu closed 1 month ago

Theod0reWu commented 1 month ago

When the server is starting up after idling in google cloud run, the api requests are not responded to until the server starts up.

Theod0reWu commented 1 month ago

When the reconnecting function is called in the front end. It is typically the first function to execute and normally causes no issues. However when the server is restarting, a player can click "host game", which triggers another function to send an API request. When this happens the requests can be processed out of order. Causing the reconnecting function to overwrite critical data.

This should be fixed now in 54f9cd8a0016096789c71b5f54e02922badd4224