Hi, i was asked to bump the toolkit version to 0.7.137 or higher, so we can enable some config for agents tools.
When i tested i got some errors,
- Last run worked fine, on toolkit version 0.7.69 (last friday), for both pipelines below.
- I have tried both version 0.7.137 and 0.7.139, getting the same error on both
Error (on dry run step) - synergi pipeline: Pipelines - Run 20260302.2 logs
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vsts/.local/lib/python3.12/site-packages/cognite_toolkit/_cdf_tk/apps/_core_app.py", line 367, in <lambda>
….
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vsts/.local/lib/python3.12/site-packages/cognite_toolkit/_cdf_tk/client/api/functions.py", line 62, in retrieve
return self._request_item_response(
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vsts/.local/lib/python3.12/site-packages/cognite_toolkit/_cdf_tk/client/cdf_client/api.py", line 115, in _request_item_response
response_items.extend(self._validate_page_response(response).items)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vsts/.local/lib/python3.12/site-packages/cognite_toolkit/_cdf_tk/client/api/functions.py", line 37, in _validate_page_response
return PagedResponse[FunctionResponse].model_validate_json(response.body)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vsts/.local/lib/python3.12/site-packages/pydantic/main.py", line 766, in model_validate_json
return cls.__pydantic_validator__.validate_json(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 3 validation errors for PagedResponse[FunctionResponse]
items.0.error.code
Field required [type=missing, input_value={'message': 'Function dep...nUploading 21.54 KB []"}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
items.1.error.code
Field required [type=missing, input_value={'message': 'Function dep...\nUploading 9.88 KB []"}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
items.2.error.code
Field required [type=missing, input_value={'message': 'Function dep...\nUploading 8.75 KB []"}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.12/v/missing
Error in pi-timeseries pipeline: Pipelines - Run 20260302.1 logs
cognite_toolkit._cdf_tk.client.http_client._exception.ToolkitAPIError: Request failed with status code 400: While parsing object, expecting char `{` at items.capabilities[11].rawAcl.scope.tableScope.dbsToTables.raw_pi-timeseries….
We are abit unsure on if it is a bug or a validation criteria that the current code doesn't meet, do you guys know what the issue might be?
We are quite a few versions behind the latest toolkit version, so might be some more issues we haven't discovered.
Thanks,
Yohannes DK
Check the
documentation
Ask the
Community
Take a look
at
Academy
Cognite
Status
Page
Contact
Cognite Support