JoeBussard / polywordleapi

the api for playing polywordle
0 stars 0 forks source link

Random 404s in Heroku #64

Closed JoeBussard closed 2 years ago

JoeBussard commented 2 years ago

Getting 404 responses when requesting game status in HerokuBut not getting 404 responses when sending POST requests for a new game. Probably the same "Threaded=False" issue.

JoeBussard commented 2 years ago

Started PWAPI locally using gunicorn and survived dozens of /newgame and /game POST's and /game GET's,

JoeBussard commented 2 years ago

Tested GET's with heroku 50% of GET /v1/game/<uuid> returned 404. 50% returned 200.

JoeBussard commented 2 years ago

using heroku local we dont get a single 404.

JoeBussard commented 2 years ago

The solution was adding the heroku config variable WEB_CONCURRENCY=1, which tells gunicorn I only want 1 worker process. This is a short term fix.