Heroku - Unexpected Behaviour / Runs into errors at times, resubmitting pushes through / Sometimes Submits incorrect form data

I recently started experiencing this with my app.

Runs fine locally and seems fine after deployment.

But at times it behaves strangely. Like it's server side and not my app. Where it posts an error submitting a value.

But after clicking a few times it goes through. Server side.

It performed better while running on the Free Dyno. After upgrading it seems sluggish and unresponsive.

1 answer

  • answered 2021-02-23 01:10 ToddMcCullough

    It appears as though I should be waiting a short while on some of my exceptions, because the Heroku Dyno may be somewhat slower than my local machine (my CPU is 9 years old though :/)

    I've added sleep(1) and this appears to be solving the problem.