Error
when an invalid value such as “aaaa” is requested on an established WebSocket, an error indicating the internal path of the program and the processing status is returned.
Detection location
WebSocket (/_stcore/stream)
Expectation
We are trying to do proper error handling and that the internal information of the program is not responded.
What we have tried till now.
Configuration parameters
Changing various client "showErrorDetails " parameters nothing impact the WebSocket logging.
Error (Picture)
Error text
b646cf211db72c9b6bc3fe534
RuntimeErrorIWebSocket received an unexpected str
message. (We expect bytes
only.)File “/usr/local/lib/python3.12/site-packages/streamlit/web/server/browser_websocket_handler.py”, line 209, in on_message
raise RuntimeError(
Python version 3.12
Streamlit version Streamlit v1.43.0