Skip to content
Snippets Groups Projects

Api hotfix sqlalchemy

Webservice logs showed errors when trying to log in:

authlib.integrations.base_client.errors.MismatchingStateError: mismatching_state: CSRF Warning! State not equal in request and response.

Database sessions were unable to load, so the session state was not available for authentication. This appears to be related to an interaction between encode/databases and sqlalchemy 1.4.42 seems to cause issues with databases (https://stackoverflow.com/a/74102692). Pinning sqlalchemy to 1.4.41 resolves the issue for now.

  • pinned sqlalchemy to 1.4.41
  • added logging for exceptions that occur while loading sessions
  • added INFO level logging by default, configured with LOG_LEVEL=INFO environment variable

/cc @erigler

Edited by Jeremy M Fee

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading