swayf / proxmoxer

python wrapper for Proxmox API v2 (https://pve.proxmox.com/pve-docs/api-viewer/index.html)
MIT License
156 stars 58 forks source link

Problems with version 5.3 #67

Open shibumi opened 5 years ago

shibumi commented 5 years ago

Hi, I get with the newest proxmox version the following errors:

Traceback (most recent call last):
  File "/root/proxmox-dokuwiki-exporter.py", line 27, in <module>
    for node in proxmox.nodes.get():
  File "/root/.local/lib/python3.5/site-packages/proxmoxer/core.py", line 84, in get
    return self(args)._request("GET", params=params)
  File "/root/.local/lib/python3.5/site-packages/proxmoxer/core.py", line 79, in _request
    resp.content))
proxmoxer.core.ResourceException: 500 Internal Server Error: 

As message In the server error I get a full graph of my cluster (here redacted). what the hell?!

The line that triggers this error is this one here: for node in proxmox.nodes.get():

pskrzyns commented 5 years ago

@shibumi new version of pvesh has a few changes:

https://github.com/swayf/proxmoxer/pull/59 should fix it

shibumi commented 5 years ago

@pskrzyns i use proxmoxer as library for my own script. No idea where I should include this --format-output json..

pskrzyns commented 5 years ago

@shibumi if u don't want to wait for merge of #68 and new lib version you can: