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

API endpoints should return 404 rather than raising error for badly formed PKs #10504

Closed
sentry-io bot opened this issue Apr 18, 2023 · 1 comment
Closed
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 18, 2023

ValueError: badly formed hexadecimal UUID string

Sentry Issue: KOLIBRI-BACKEND-2CX

ValueError: badly formed hexadecimal UUID string
(22 additional frame(s) were not displayed)
...
  File "django/db/models/lookups.py", line 170, in as_sql
    rhs_sql, rhs_params = self.process_rhs(compiler, connection)
  File "django/db/models/lookups.py", line 103, in process_rhs
    return self.get_db_prep_lookup(value, connection)
  File "django/db/models/lookups.py", line 196, in get_db_prep_lookup
    [get_db_prep_value(value, connection, prepared=True)]
  File "morango/models/fields/uuids.py", line 39, in get_db_prep_value
    value = uuid.UUID(value)
  File "uuid.py", line 177, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
@rtibbles
Copy link
Member

Fixed in #11009

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

1 participant