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

Bad redirect for UserProfiles causing exception #462

Open
Almad opened this issue Mar 12, 2024 · 0 comments
Open

Bad redirect for UserProfiles causing exception #462

Almad opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
bug Obvious problem / loss of data / expectation mismatch bug-production Problem reported on production, not necessarily related to code

Comments

@Almad
Copy link
Member

Almad commented Mar 12, 2024

https://almad.sentry.io/share/issue/3137cf4bef8041ab90748195f07ff532/

UserProfile.MultipleObjectsReturned: get() returned more than one UserProfile -- it returned more than 20!
  File "django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/decorators/http.py", line 40, in inner
    return func(request, *args, **kwargs)
  File "ddcz/views/legacy.py", line 112, in legacy_router
    user_profile = get_object_or_404(UserProfile)
  File "django/shortcuts.py", line 76, in get_object_or_404
    return queryset.get(*args, **kwargs)
  File "django/db/models/query.py", line 433, in get
    raise self.model.MultipleObjectsReturned(
@Almad Almad self-assigned this Mar 12, 2024
@Almad Almad added bug Obvious problem / loss of data / expectation mismatch bug-production Problem reported on production, not necessarily related to code labels Mar 12, 2024
@github-project-automation github-project-automation bot moved this to In progress in Launch Party Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Obvious problem / loss of data / expectation mismatch bug-production Problem reported on production, not necessarily related to code
Projects
Status: In progress
Development

No branches or pull requests

1 participant