Pending server and Connection Time out when deployed on Heroku Server

I have somehow hosted the streamlit webapp on Heroku.
Now whenever I try to open the URL or refresh the page with Shitf+R, it takes a lot of time, the web app shows Please Wait... and the chrome console shows this error a lot of times:

Uncaught Error: Unsupported state transition.
    at bt.stepFsm

I have attached a screenshot of the chrome console in web browser too.

And then after 5-10 minutes of waiting, the app is loaded entirely. And my app isn’t very fancy too. It just uses saved scikit-learn’s RandomForestClassifier to classify the categorical or numerical input data.

1 Like

I am facing the similar problem. Whenever I try to open the URL it takes a lot of time to load the web application showing the similar error as above.