Login/register issue - An unexpected error occurred. Please click the button below to refresh the page

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.

edx env url - Authn | null

Could you please here?

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.