Icingacli director update error Trying to set invalid key "fields"

I’ve hit an unusual error on setting up a new upgraded icinga server. To make modifications I use the icingacli to retrieve then update director json data. However when trying to update I’m seeing this error:

ERROR: InvalidArgumentException in /usr/share/icingaweb2/modules/director/library/Director/Data/Db/DbObject.php:364 with message: Trying to set invalid key "fields"

This is from a command I run to retrieve current json of a service, I amend details then write back the changes, only changing updated fields. In this case when querying icingacli I get the “fields” key which shows an empty set, so it’s being added by icinga itself to the service, but it then complains it’s an invalid key and won’t make the update.

Raw output on querying for a service:

icingacli director service show --host="aslf02" 'check_juniper_load' --json --no-pretty
{"fields":[],"host":"aslf02","imports":["servicetemplate-XXXX","service-juniper-load"],"notes":"Added by icinga-import 10:14:56 13/12/2024","object_name":"check_juniper_load","object_type":"object","uuid":"198e50ba-73d8-4be8-979f-fae427918a2b","vars":{"ARG1":"20,30,40"}}

You can see the first returned key is “fields” with a blank set of parenthesis.
Anyone any idea on how to solve this?

Icinga Web 2 version - 2.12.2
Used modules and their versions
Loaded Libraries
icinga/icinga-php-library	0.14.1
icinga/icinga-php-thirdparty	0.12.1
Loaded Modules
director		1.11.2
incubator		0.22.0
monitoring		2.12.2
pnp		1.0.1
pulsant-theme		1.0.1
Web browser used - Chrome
Icinga 2 version used (icinga2 --version) r2.14.3-1
PHP version used (php --version) 8.1.2-1ubuntu2.19
Server operating system and version Ubuntu 22.04.5

I suspect this is a bug so I’ve logged it:

remove the fields array as a workarround