acdh-oeaw / apis-core

https://acdh-oeaw.github.io/apis-core/
MIT License
11 stars 3 forks source link

Exception: Did not find the entity instance in the given relation class fields!Either a wrong entity instanc... #380

Open sentry-io[bot] opened 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: APIS-PMB-PRODUCTION-1

Exception: Did not find the entity instance in the given relation class fields!Either a wrong entity instance or wrong relation class was passed to this function.
(2 additional frame(s) were not displayed)
...
  File "django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "django/contrib/auth/mixins.py", line 109, in dispatch
    return super().dispatch(request, *args, **kwargs)
  File "django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "apis_core/apis_entities/detail_views.py", line 76, in get
    table = get_generic_relations_table(relation_class=rel, entity_instance=instance, detail=True)
  File "apis_core/apis_relations/tables.py", line 129, in get_generic_relations_table
    raise Exception(

this is again coming from a bot, however we need to resolve the issue with the tables nonetheless