question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Google Cloud Run] Hasn't received its "streamlit:componentReady" warning on custom modules

See original GitHub issue

Summary

All the Streamlit modules such as Cookie Manager from extra_streamlit_components, streamlit_option_menu are not working when I run the app on Google Cloud Run, but totally fine when I run it on local.

streamlit==1.13.0 streamlit_option_menu==0.3.2 extra_streamlit_components==0.1.56 Python 3.10

Code snippet:

import extra_streamlit_components as stx

@st.cache(allow_output_mutation=True)
def get_cookie_manager():
    return stx.CookieManager()

cookie_manager = get_cookie_manager()
cookies = cookie_manager.get_all()

target = cookie_manager.get("xxyyzz")
from streamlit_option_menu import option_menu

menu = option_menu(None, ['A', 'B', 'C'])

Screenshot

warning warning2

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
moonbug-carcommented, Oct 18, 2022

@marduk2 Hi! I have just tried

  1. turn on session affinity and decrease the concurrency: it did not work
  2. turn on session affinity and increase the concurrency: it works

but increasing the concurrency has already solved the problem in my use case so it is hard to evaluate what is the impact from turning on the session affinity, will let let you guys know if I find the impact

Thank You!

2reactions
sfc-gh-kbregulacommented, Oct 17, 2022

I wonder if turning on session affinity might improve the situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Any ideas on "Your app is having trouble loading ... - Streamlit
Hey! Ag-grid component has static files and is compiled. My guess is that this issue is happening at the streamlit side of the...
Read more >
Troubleshoot Cloud Run issues
This page shows you how to resolve issues with Cloud Run. For other issues not listed below, check to see if they may...
Read more >
Add a parameter to set the `COMPONENT_READY` timeout
I'm still debugging and it looks like I should get this warning Received component message for unregistered ComponentInstance! But we will see ...
Read more >
No module named 'google.cloud' When deploying Streamlit ...
To access bigquery, you need to add the library to your requirements.txt file: pip install google-cloud-bigquery.
Read more >
Google Cloud Platform Resources Cloud Run - GCP Weekly
How to deploy and secure your Streamlit app on GCP? - Streamlit is a great tool to create beautiful data applications, in this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found