Limit to number of parameters being sent?



https://github.com/OliPassey/kodikontrol…default.py

I am trying to build a full-screen notification addon, and things were working mostly fine until I tried to add a second parameter to the plugin / api call. Im not a skilled developer but trying to learn by doing.

If i send one parameter – message or headline – that plugin works and displays the text as expected, but if i send two parameters – headline & message – i start getting JSON Decode errors. I read that there is a limit of 5 parameters that can be passed to kodi at once, but now can’t find where i read that. is this true?

The line im considering currently is (line 20, default.py);

Code:
notification = FullScreenNotification('fullscreen-notify.xml', addon_path, 'default', '1080i', message=message, headline=headline)

I tried combining message & headline into one json packet for the api and getting the addon to unpack it, but it still failed to work giving the same json decode erorrs.

When testing with this JSON packet;

Code:
{
    "jsonrpc": "2.0",
    "method": "Addons.ExecuteAddon",
    "params": {
        "addonid": "script.kodikontroller-notify",
        "params": {
            "message": "Your custom message here",
            "headline": "Your custom headline here"
        }
    },
    "id": 1
}

I get a 200 OK no matter what.

In the kodi log i see;
2024-06-20 19:52:29.152 T:13056   error <general>: Failed to decode JSON
2024-06-20 19:52:29.163 T:23984    info <general>: Loading skin file: C:\Users\Oli\AppData\Roaming\Kodi\addons\script.kodikontroller-notify\resources\skins\default\1080i\fullscreen-notify.xml, load type: LOAD_ON_GUI_INIT

and Kodi displays the window as expected but with JSONDecodeError as the headline and the exception “This is a full screen notification”

Is this a kodi limitation i’m hitting?
I wanted to add several more parameters ideally like background colour etc.