API error response / Verbose level

Alyx

New Member
Jul 13, 2024
2
0
1
Hey,

I am currently trying to write an application which is using the API to interface with proxmox.

Unfortunately, the API sometimes returns no real error messages when it receives invalid data.
It just returns a http 500 with "{"data":null}". No further information, no details in the interface about this.

This makes it kinda impossible to debug anything :/


Is there a way to make the API more verbose or to enable logging or anything like this?
 
The API's backend-service is pvesh, which you can also use to do just about anything you can do via the API via the shell/SSH.
If anything is going to give you more verbose feedback it will probably be that.
That said though, according to the documentation [1], only the help and usage nods/parameters have a verbose option, so might not get your hopes up too much.

[1] https://pve.proxmox.com/pve-docs/pvesh.1.html
 
  • Like
Reactions: Alyx
Thanks, I will try it via pvesh.

Still think the API should be more verbose in general.
In this specific case, I tried to restore a backup but gave an invalid path to the backup.
I kinda expect that it gives me some sort of message that the backup can't be found.. but it just returns with nothing at all :(
 

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!