Network Issue (cannot load Streamlit frontend code) on AWS deployed apps #9040

We are facing the following issue:

On the deployed app on an ECS Fargate Service we are encountering these errors on pages including st.dataframe, st.pyplot, st.table. Interesting thing is that it only happens on pages other than the homepage.

The error is either this:

Or this:

When reloading the page the error is gone.