Skip to main content

CogniteAPIError: "Constraint factory returned null". Meaning?

  • October 29, 2024
  • 7 replies
  • 69 views

Anders Brakestad
Seasoned

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?

7 replies

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Anders Brakestad we will further investigate on this and get back to you with an update.


Anders Brakestad
Seasoned

@Anders Brakestad we will further investigate on this and get back to you with an update.

Thanks a lot! :) 


Anders Brakestad
Seasoned

@Mithila Jayalath Any updates on this?


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Anders Brakestad can you please let me know the  CDF project or the cluster that you are working on?


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Anders Brakestad Sorry for the late reply. The engineering team has identified this as a bug. I’ll create a support ticket for this issue and the support team will escalate this issue and get back to you with updates.


Anders Brakestad
Seasoned

@Mithila Jayalath  I am not able to log in to support.cognite.com. It asks for a code from authenticator, but I don’t have that account in the authenticator. And I need to use MFA to log in and change the MFA settings. Can you reset something for my account so I can configure MFA correctly?


Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Anders Brakestad can you please try again to login? I have reset your MFA. Please let me know if you are observing any issues.