mkhorasani / Streamlit-Authenticator

A secure authentication module to validate user credentials in a Streamlit application.
Apache License 2.0
1.38k stars 229 forks source link

KeyError: 'st.session_state has no key "$$GENERATED_WIDGET_ID-708114cdb90d1a7f715f08aeb5ed8572-None". #56

Closed ryanshrott closed 1 year ago

ryanshrott commented 1 year ago

Randomly getting this error from time to time. How to fix it? KeyError: 'st.session_state has no key "$$GENERATED_WIDGET_ID-708114cdb90d1a7f715f08aeb5ed8572-None". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization' 2023-04-01 21:19:26.431 API queries_quota: 60

mkhorasani commented 1 year ago

Hi @ryanshrott, I am not sure if this error is related to streamlit-authenticator, please refer to this article for the latest updates.

vidz1979 commented 1 year ago

Hi @mkhorasani !!

I've added some info's in that thread. I think that has something to do with authenticator.

https://discuss.streamlit.io/t/keyerror-st-session-state-has-no-key-generated-widget-id-none-did-you-forget-to-initialize-it-more-info/39325/18?u=vidz1979

mkhorasani commented 1 year ago

Hi @vidz1979, as I am unable to recreate this error locally, can you please try to comment the authenticate.py script to try to localize the exact line where this error is thrown?