Is there any kind of API call limitation?

uihuizui

Member
Mar 13, 2023
29
2
8
Hi,

I’m running into issues when using the API. When I try to get two responses in short time, the second call ends just in a “undefined”.
It’s not important if that are two different calls or the same in short time.

When I wait maybe a minute I get valid answers again.

My weapon of choice is a Blockly in iobroker JavaScript adapter.

For example, I use a EXEC Block with:

curl -X GET -H 'Authorization: PVEAPIToken=xxx@pve!xxx=1234' "https://192.168.69.xxx:8006/api2/json/nodes/KellerBackup-Proxmox/tasks?source=active" --insecure
And the second maybe:
curl -X GET -H 'Authorization: PVEAPIToken=xxx@pve!xxx=1234' "https://192.168.69.xxx:8006/api2/json/nodes/KellerBackup-Proxmox/status --insecure

Is there any call capping and how can I reduce it to get several API answers also in short time?

Best regards
 
Hi,

It’s not important if that are two different calls or the same in short time.
So you're encountering the issues no matter which API endpoints you talk to?

Please check if you see any messages in the syslog around the time when you're doing these API requests, and also post the output of pveversion -v (in code tags).
 
Hi nunner,

i searched a bit further. It seems to be an issue in iobroker and/or blockly, not in PVE.

When I curl from iobroker host command line and other machines it’s working fine. The issue only happens when using the blockly script.

I will update here when I’ve found the issue.

Thanks!