mkhorasani / Streamlit-Authenticator

A secure authentication module to manage user access in a Streamlit application.
Other
1.56k stars 248 forks source link

st.session_state adding key without a value #73

Closed manishb27 closed 8 months ago

manishb27 commented 1 year ago

After a while there is an error occurs. Follwing is the is error name.

KeyError: 'st.session_state has no key "$$WIDGET_ID-066388677307bd58b4f92f728cc0bb22-text". Did you forget to initialize it? More info: https://docs.streamlit.io/library/advanced-features/session-state#initialization'

ikanberjalandidarat commented 1 year ago

Hi, I also have the same issue, the st.session_state does not load any value when using the authenticator.
This is a quite recent issue, any ideas? @mkhorasani

mkhorasani commented 1 year ago

Hi @manishb27, @ikanberjalandidarat this is a rather perplexing issue that we cannot diagnose yet. As soon as I figure out what is happening I will inform everyone. Thank you for your pateince.

SBVR-jeremy commented 1 year ago

Hi @mkhorasani , I got the same issue. You can find similar and more detailled informations here : 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/6

daimoriwaki commented 1 year ago

I got same issue. But after a long exploring I found the error did not come from authenticator but from other part of my code. In my case I set wrong API KEY for request, but received "widget brabra...". I strongly recommend dig other part of your code rather than digging authenticator. gl.