[SOLVED] Websocket connection invalid pvevnc ticket

JVisi

New Member
Sep 23, 2022
15
0
1
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?
 
Last edited:

dcsapak

Proxmox Staff Member
Staff member
Feb 1, 2016
8,743
1,148
174
34
Vienna
are you sure the ticket is urlencoded?
should work, since we do basically the same in novnc
 

JVisi

New Member
Sep 23, 2022
15
0
1
are you sure the ticket is urlencoded?
should work, since we do basically the same in novnc
I rewrote this part in an another environment it worked, copy pasted back and it works, maybe it was a typo somewhere I couldnt see, thanks for your time
 

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 your own in 60 seconds.

Buy now!