Skip to content
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

Exception openedx.tasks.repair_faulty_openedx_users #2482

Open
sentry-io bot opened this issue Dec 4, 2024 · 0 comments
Open

Exception openedx.tasks.repair_faulty_openedx_users #2482

sentry-io bot opened this issue Dec 4, 2024 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 4, 2024

The edx error message doesn't make any sense. The username doesn't only has letters in it: https://mitxonline.mit.edu/admin/users/user/164435

Sentry Issue: MITXONLINE-3Q0

OpenEdxUserCreateError: Error creating Open edX user. Response - code: 400, content: {
  "username": [
    {
      "user_message": "Usernames can only contain letters, numerals, and @/./+/-/_ characters."
    }
  ],
  "error_code": "validation-error"
}
  File "openedx/api.py", line 348, in repair_faulty_edx_user
    created_user = create_edx_user(user)
  File "openedx/api.py", line 140, in create_edx_user
    raise OpenEdxUserCreateError(

Exception: 
  File "openedx/api.py", line 392, in repair_faulty_openedx_users
    created_user, created_auth_token = repair_faulty_edx_user(user)
  File "openedx/api.py", line 356, in repair_faulty_edx_user
    raise Exception from e  # noqa: TRY002

Failed to repair faulty user smorenojauregui ([email protected])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants