In this, the rule iterates through installed and expected (as unexpected) marketplace AddOns.
It throws an ERROR, as the returned “installed” array is sometimes NULL as it never should be:
You only have the timeout on your api call set to 2 seconds. I suspect that during particular times depending on what else your server is doing, it just doesn’t respond within that timeframe. That’s really the primary way that your response value would remain null. If the api itself were returning the incorrect value then instead you would be getting a valid response with an empty list or error payload.
As you can see above, sometimes there’s days without an ERROR and sometimes two within 3hours. As it also occours regardless of daytime I don’t suspect heavy use on the machine from me doing stuff in openHAB. (and the Pi4 only runs openHAB and monitoring stuff, no other application)