We are getting this error “An unexpected error occurred. Please click the button below to refresh the page.” after click on sign in. I tried multiple times but still getting the same error.
I checked the logs. there is one logs - [edx_rest_framework_extensions.auth.jwt.middleware] [user None] [ip -] middleware.py:253 - Both JWT auth cookies missing. JWT auth cookies will not be reconstituted.
I had this happen. Turns out that creating a new user wasn’t prompting for an email address (required field in the database), so it was creating a user with a blank email address (worked for the first user created). After that, trying to create another user was causing a duplicate key in the database, and wasn’t allowing the user to be created, and threw that error.
tl;dr
Check that all the required fields are in your user database; you may have a duplicate.