Proxmox api vncwebsocket

aIdiot

New Member
Jul 19, 2020
1
0
1
15
Hey guys :),

I am currently trying to embed a console into a website.
from what I read to this point the way to do it is :
POST /api2/json/nodes/{node}/qemu/{vmid}/vncproxy
GET /api2/json/nodes/{node}/qemu/{vmid}/vncwebsocket
- vncticket = ticket from previous request ; port = port from previous request

The first part works just fine.(I get a ticket in following format : PVEVNC:xxxxxxxx==)
The second part is where stuff breaks for me. To this point I got a 401 - invalid PVEVNC ticket any time I tried it.

Another thing I read about was adding websocket = 1 to the first request.
That didn't change anything in my case either.

I would be very happy for some ideas on how to fix it!;)
 

Fabian_E

Proxmox Staff Member
Staff member
Aug 1, 2019
530
56
28
Hi,
the ticket for vnc has to be used within 40 seconds. If you tried things manually, might you have taken longer? Otherwise, is the parameter properly URL-encoded in the request URL?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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!