Backwards compatibility issue with API

Which tool versions are you using?

SDK: v14.2.0
Python: v3.11
Isolation mode: venv

Current Behavior

after updating the SDK from 13.7.0 to 14.2.0 te API seems to have changed the interface:

Traceback (most recent call last):
  File "viktor/api_v1.pyx", line 85, in viktor.api_v1._memoize.wrapped_fun
KeyError: 'api-memoize-f148c5554e080dadfb120ca609d66a3a'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "viktor/api_v1.pyx", line 93, in viktor.api_v1._memoize.wrapped_fun
KeyError: 'api-memoize-ffcd6030e1ba6e225f42a096a4762ca9'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "viktor_connector/connector.pyx", line 295, in connector.Job.execute
  File "viktor/core.pyx", line 1918, in viktor.core._handle_job
  File "viktor/core.pyx", line 1864, in viktor.core._handle_job._handle_button
  File "/home/user/src/app/scia_geometry/controller.py", line 137, in download_xml_file
    revision_number = len(entity.revisions())
                      ^^^^^^^^^^^^^^^^^^^^^^^
  File "viktor/api_v1.pyx", line 580, in viktor.api_v1.EntityRevisionList.__len__
  File "viktor/api_v1.pyx", line 604, in viktor.api_v1.EntityRevisionList._resolve
  File "viktor/api_v1.pyx", line 97, in viktor.api_v1._memoize.wrapped_fun
  File "viktor/api_v1.pyx", line 992, in viktor.api_v1._API._request_entity_revisions
  File "viktor/api_v1.pyx", line 288, in viktor.api_v1.EntityRevision._from_json
KeyError: 'param_types'

Expected Behavior

I would expect some kind of changelog issue that the interface has been been changed

Workaround

For now I will revert back to viktor 13.8.0

Hi Wichard,

Thanks for notifying us, this is indeed a regression in the SDK. We will make a patch as soon as possible.

As workaround you could do the following such that you can continue to work with the latest SDK:

revisions = entity.revisions()
revisions[0]  # will resolve the EntityRevisionList internally
revision_number = len(revisions)

Hi Wichard,

We have just released SDK v14.2.1, which fixes this issue.