Is there any way to catch “Your app is having trouble loading the …” warning in Python? I would like to handle it instead of showing a message like the following one.
The message seems to be generated in Typescript.
disabled: this.props.disabled, }) } private renderError = (error: Error): ReactNode => { return <ErrorElement name={error.name} message={error.message} /> } private renderComponentReadyTimeoutWarning = (): ReactNode => { const message = `Your app is having trouble loading the **${this.props.element.componentName}** component. ` + `\n\n(The app is attempting to load the component from **${this.props.element.url}**, and hasn't ` + `received its **"${ComponentMessageType.COMPONENT_READY}"** message.)` + "\n- If this is a development build, have you started the dev server?" + "\n- If this is a release build, have you compiled the frontend?" + `\n\nFor more troubleshooting help, please see the [Streamlit Component docs](${COMPONENT_DEVELOPER_URL}) ` + `or visit our [forums](${COMMUNITY_URL}).` return ( <Alert width={this.props.width} body={message} kind={Kind.WARNING} /> )
2 Likes
Hello, I also encountered this problem recently. Do you have a good solution?
2 Likes