Streamlit application stopped Working suddenly by giving warnings

Because following error my streamlit application stopped working on any of the browsers. In place of 8051 I am getting URL as http://localhost:3000/ which is not working at all.

2024-10-09 15:49:58.246 WARNING streamlit.config:
Warning: the config option 'server.enableCORS=false' is not compatible with 'server.enableXsrfProtection=true'.
As a result, 'server.enableCORS' is being overridden to 'true'.

More information:
In order to protect against CSRF attacks, we send a cookie with each request.
To do so, we must specify allowable origins, which places a restriction on
cross-origin resource sharing.

If cross origin resource sharing is required, please disable server.enableXsrfProtection.

2024-10-09 15:49:58.262 DEBUG   streamlit.web.server.server: Starting server...
2024-10-09 15:49:58.262 DEBUG   streamlit.web.server.server: Serving static content from the Node dev server
2024-10-09 15:49:58.262 DEBUG   streamlit.web.server.server: Server started on port 8501
2024-10-09 15:49:58.278 DEBUG   streamlit.runtime.runtime: Runtime state: RuntimeState.INITIAL -> RuntimeState.NO_SESSIONS_CONNECTED

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:3000
  Network URL: http://10.129.182.99:3000

2024-10-09 15:49:58.403 DEBUG   streamlit.web.bootstrap: Setting up signal handler

What version of streamlit do you have? And what command are you using to start your app?

Hello
I am usin 1.39.0 version of streamlit. And below command i am using to run
streamlit run script. py

I started facing this issue when installed the third party scroll feature using below command,
pip install streamlit-scrollable-textbox

Ah, that’s good to know – could you try uninstalling that package and see if that fixes it? I haven’t seen that package before, but it looks like it was probably released before st.text_area - Streamlit Docs was available, so I don’t think you probably really need that package anymore.

Hi @blackary

I have uninstalled the pip install streamlit-scrollable-textbox component and also the streamlit from my virtual environment. But after doing these to uninstallation I was still able to see the streamlit libraries in my virtual environment, so I deleted them manually and then reinstalled streamlit again, which resolved my issue. Now I am able to use the Streamlit application as before.

Thank you so much for your guidance.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.