mozilla / mozilla-django-oidc

A django OpenID Connect library
https://mozilla-django-oidc.readthedocs.io
Mozilla Public License 2.0
444 stars 166 forks source link

"DatabaseError: Forced update did not affect any rows" on `request.session.save()` #491

Open danielfbnunes opened 1 year ago

danielfbnunes commented 1 year ago

Django version: 3.2.18

After a user login, I came across this "DatabaseError: Forced update did not affect any rows" error on ​request.session.save(). This looks to me like a race condition where the session doesn't exist but ​we still try to update it.