Error accessing vncwebsocket

elettronik

New Member
Oct 4, 2018
1
0
1
36
Good morning,
I'm trying to access the serial console of a vm using python scripts.
I'm using the requests library for the rest part and trying to use websockets library to interact with websocket.

After I get a valid ticket using the /api2/json/nodes/pve/qemu/100/termproxy call to get a valid ticket, I tried to connect to the websocket using the following url:

wss://pve:8006/api2/json/nodes/pve/qemu/100/vncwebsocket

using the cookie header with cookie used before, ticket and port returned by prior call. Instead of opening the websocket connection, this call seems to return an 501 error.

Where can I check this error? is there any check I could make to make sure it works?

Thanks in advance for your help!
 

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!