Hello
Reading through the API call I can successfuly make request to the following endpoints:
post - api2/json/access/ticket
post - api2/json/nodes/node/lxc/vmid/vncproxy
get api2/json/nodes/node/lxc/vmid/vncwebsocket
From these (besides other things) I have the pvevnc-ticket, the websocket port and a pveauthcookie
but then when I'm trying to call:
wss://ip:8006/api2/json/nodes/node/lxc/vmid/vncwebsocket?port=5902&vncticket=PVEVNC..
fails with: Connect Error: Error: Server responded with a non-101 status: 401 permission denied - invalid PVEVNC ticket
The vnc ticket is encoded in both cases and it works fine when I GET ../vmid/vncwebsocket
Am I missing something?
Reading through the API call I can successfuly make request to the following endpoints:
post - api2/json/access/ticket
post - api2/json/nodes/node/lxc/vmid/vncproxy
get api2/json/nodes/node/lxc/vmid/vncwebsocket
From these (besides other things) I have the pvevnc-ticket, the websocket port and a pveauthcookie
but then when I'm trying to call:
wss://ip:8006/api2/json/nodes/node/lxc/vmid/vncwebsocket?port=5902&vncticket=PVEVNC..
fails with: Connect Error: Error: Server responded with a non-101 status: 401 permission denied - invalid PVEVNC ticket
The vnc ticket is encoded in both cases and it works fine when I GET ../vmid/vncwebsocket
Am I missing something?
Last edited: