Is there any kind of API call limitation?

uihuizui

New Member
Mar 13, 2023
27
2
3
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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!