You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyError: 'cites'
File "elasticsearch_dsl/utils.py", line 151, in __getattr__
return self.__getitem__(attr_name)
File "elasticsearch_dsl/utils.py", line 166, in __getitem__
return _wrap(self._d_[key])
AttributeError: 'DocketDocument' object has no attribute 'cites'
File "rest_framework/fields.py", line 447, in get_attribute
return get_attribute(instance, self.source_attrs)
File "rest_framework/fields.py", line 97, in get_attribute
instance = getattr(instance, attr)
File "elasticsearch_dsl/utils.py", line 472, in __getattr__
return super().__getattr__(name)
File "elasticsearch_dsl/utils.py", line 153, in __getattr__
raise AttributeError(
AttributeError: Got AttributeError when attempting to get a value for field `cites` on serializer `BaseRECAPDocumentESResultSerializer`.
The serializer field might be named incorrectly and not match any attribute or key on the `DocketDocument` instance.
Original exception text was: 'DocketDocument' object has no attribute 'cites'.
(9 additional frame(s) were not displayed)
...
File "cl/search/api_views.py", line 275, in list
return paginator.get_paginated_response(serializer.data)
This is an error I got while testing in production over the new V4 Search API.
This one is related to the 'cites' field. It seems that in some documents it can get properly serialized.
Sentry Issue: COURTLISTENER-76S
Filed by @albertisfu
The text was updated successfully, but these errors were encountered: