I deployed a Streamlit app using a docker hosting it on Azure, then I embedded the streamlit app into another webpage and I keep getting the following warnings
Received component message for unregistered ComponentInstance!
I set up my config file to the following:
[global]
disableWidgetStateDuplicationWarning = true
showWarningOnDirectExecution = false
[server]
headless = true
[logger]
level = "error"
[ui]
hideTopBar = true
[runner]
fastReruns = true
When I run it locally the warnings go away, but once I deploy it, it seems that ignores my config file.
Any idea on how I can suppress these warnings on the deployment?
Can you provide more information about your app? These warnings are coming from the frontend whereas the configurations options are only going to impact what is directly displayed in the app or shown in the terminal/console that launched the Python server. This may be a misconfigured custom component.
Thank you for the response. My app uses custom JavaScript components for iframe communication between the parent window and the Streamlit app:
st_javascript(set_key_code.replace("{message_key}", message_key))
st_javascript(js_code.replace("{ORIGIN_URL}", ORIGIN_URL))
I load JavaScript from external files and execute it for communication with the parent window.
Is there a recommended way to handle communication between a Streamlit app embedded in an iframe and its parent window without triggering these warnings?
Since you are using someone else’s custom component, you’d need to work with the custom component publisher. Looking at the streamlit-javascript library, I see that they are on Streamlit version 1.42.0. You might try restricting your Streamlit version to double check if the behavior is the same, otherwise, I recommend working with the component developer.
1 Like