-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FAM frontend 403 error #1338
Comments
Hi @MCatherine1994 , I am looking at SqlAlchemy doc for "engines". |
By checking the log, it returns a "ROLLBACK", wondering if the db session got some exception, will add a log here. Also some reading https://stackoverflow.com/questions/64763770/why-we-use-yield-to-get-sessionlocal-in-fastapi-with-sqlalchemy and an example to create a db session using FastAPI and SqlAlchemy tiangolo/fastapi#6006 |
Sqlalchmey has a connection pool mechanism by default. So in the get_db() method, we'll get a session for each single request. Using "yeild" so the Reference: https://docs.sqlalchemy.org/en/20/orm/session_api.html#sqlalchemy.orm.Session.close https://stackoverflow.com/questions/21738944/how-to-close-a-sqlalchemy-session |
Set up the AWS Prod CloudWatch for the DatabaseConnections for RDS proxy CloudWatch Dashboard in PROD for data in the past 3 month: CloudWatch Dashboard in TEST for data in the past 3 month: Will keep trying to see if can get this 403 error again in the future. |
Describe the task
Craig found an issue that he's trying to add a few roles assignments and suddenly he can't do anything anymore, he still seems "logged in" FAM, but can't perform any action. Refresh doesn't help.
Acceptance Criteria
Additional context
The text was updated successfully, but these errors were encountered: