REST-API fails randomly to deliver payload

running OH4.3.3-release on Pi4(4GB) with openHABian.

I have an hourly rule, which checks on installed and then missing marketplace-bindings (see Upgrading openHAB: best practise to monitor previously installed Marketplace add-ons - #3 by binderth) for reference.

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:

as you can see, this was the case 3 times in the last 24hours, wheras in the remaining 19 times, the rule works fine.

How do I check, what’s wrong in my openHAB instance?

Do you have another rule starting at the exact same time?

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.

I’ve got several rules running on the hour or on the minute. But it is completely random on which hours the ERROR occurs - here’s the last 7 days:

I’ll update that to 5secs and see what happens.

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)