Intermittent “st_aggrid component failed to load (404)” when deployed on Azure Container

Hi everyone,

I’m running into an intermittent issue with st_aggrid when deploying my Streamlit app on Azure Container.

The app loads fine most of the time, but occasionally I see this error banner:

In the browser console I also see repeated messages like:

  • Failed to load resource: 404 on /component/st_aggrid/main.[hash].js

  • Several AG Grid deprecation warnings

  • “flag allow_unsafe_jscode is on.”

The same app works perfectly local (no errors). This only happens intermittently in the cloud.

Environment:

streamlit==1.43.1

streamlit-aggrid==1.1.7

Thanks in advance, any insights would be really appreciated!