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

ValueError: Unknown type "version_range" #2224

Open
mythmon opened this issue Apr 28, 2020 · 0 comments
Open

ValueError: Unknown type "version_range" #2224

mythmon opened this issue Apr 28, 2020 · 0 comments
Labels
Defect Something isn't as it should be

Comments

@mythmon
Copy link
Contributor

mythmon commented Apr 28, 2020

This is caused by me changing the name of the filter object, and by me having created some testing recipes a while ago. We should handle this error somehow. Perhaps by having a check that all recipes have valid filter object types and updating this recipe in a migration.

https://sentry.prod.mozaws.net/operations/normandy-stage/issues/8207524/

ValueError: Unknown type "version_range.
(17 additional frame(s) were not displayed)
...
  File "rest_framework/serializers.py", line 675, in to_representation
    self.child.to_representation(item) for item in iterable
  File "rest_framework/serializers.py", line 675, in <listcomp>
    self.child.to_representation(item) for item in iterable
  File "rest_framework/serializers.py", line 513, in to_representation
    attribute = field.get_attribute(instance)
  File "rest_framework/fields.py", line 443, in get_attribute
    return get_attribute(instance, self.source_attrs)
  File "rest_framework/fields.py", line 93, in get_attribute
    instance = getattr(instance, attr)

ValueError: Unknown type "version_range.
@mythmon mythmon added the Defect Something isn't as it should be label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Something isn't as it should be
Projects
None yet
Development

No branches or pull requests

1 participant