Skip to main content

CogniteAPIError when listing events

I have observed an error raised when listing events that I have never seen before. Below is the full traceback 

2024-10-28 03:35 : Traceback (most recent call last):
2024-10-28 03:35 : File "/app/function/***/***/***.py", line 95, in get_events
2024-10-28 03:35 : events = self.client.events.list(
2024-10-28 03:35 : ^^^^^^^^^^^^^^^^^^^^^^^^
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api/events.py", line 817, in list
2024-10-28 03:35 : return self._list(
2024-10-28 03:35 : ^^^^^^^^^^^
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api_client.py", line 532, in _list
2024-10-28 03:35 : for resource_list in self._list_generator(
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api_client.py", line 463, in _list_generator
2024-10-28 03:35 : res = self._post(
2024-10-28 03:35 : ^^^^^^^^^^^
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api_client.py", line 173, in _post
2024-10-28 03:35 : return self._do_request(
2024-10-28 03:35 : ^^^^^^^^^^^^^^^^^
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api_client.py", line 236, in _do_request
2024-10-28 03:35 : self._raise_api_error(res, payload=json_payload)
2024-10-28 03:35 : File "/user_env/lib/python3.11/site-packages/cognite/client/_api_client.py", line 1204, in _raise_api_error
2024-10-28 03:35 : raise CogniteAPIError(msg, code, x_request_id, missing=missing, duplicated=duplicated, extra=extra)
2024-10-28 03:35 : cognite.client.exceptions.CogniteAPIError: HV000029: Constraint factory returned null when trying to create instance of org.hibernate.validator.internal.constraintvalidators.bv.size.SizeValidatorForMap. | code: 500 | X-Request-ID: de16c737-2b32-924a-8ed2-d870a7097ed3

 

Can anyone elaborate on what causes this exception to be raised?

Be the first to reply!

Reply