Session state error

How do you manage the following error message in Streamlit:

"Bad message format

Tried to use SessionInfo before it was initialized"