Closed jurest82 closed 3 months ago
I took the following steps to fix the error:
I am monitoring app usage to check if this fix the issue
The first solution doesn't work. Adding two time.sleep(), one before login() and one after login(), does not fix the error.
Additionally, this error persists after upgrading the streamlit-authenticator dependency from version 0.2.1 to 0.3.1.
I change the expiration of cookies to only 1 day. I hope this helps resolve the issue as I understand it.
Unfortunately nothing I do helps resolve the error, my streamlit app suddenly crashes and the logs are as follows:
I'm exploring alternatives to streamlit-authenticator, such as having a proper authentication process with AWS Cognito (I already have an application fully deployed on AWS and powered by Cognito, my streamlit application is 5% of my application and is the only part that is not fully integrated with Cognito).
However, I prefer to have a quickly workaround before Cognito integration. So I continue researching! I suspect the error is not a streamlit-authentication error, I think that this is a streamlit mistake that it is caused by users when they do very intensive operation in the app
However, I prefer to have a quick solution before Cognito integration. So I keep investigating! I also suspect the error is not a streamlit-authenticator error, I think it is an global streamlit error that is caused by users when they perform a very intensive operation on the application.
Please refer to the latest release v0.3.2.
Description
I have a Streamlit application deployed in AWS Elastic Beanstalk. To authenticate users, my app has been using streamlit-authenticator in version 0.2.1.
My app has been in production environment for a year. I did not have issues during the first eleven months, but recently I have had to re-deploy my app at least once a week, because login() method of stauth.Authenticate() fails constantly. This fail causes that users can't use the app.
Logs
The following logs were extracted from Elastic Beanstalk instance:
Code
This is my Python code. With this code fragment I allow the user authentication process.
Any advice anyone can suggest?
I would appreciate any advice. In the meantime, I'm going to redeploy my app, but first I'll update the streamlit-authenticator dependency!