Console doesn't work with 3.9 and Proxmox

Problem:
When connecting to the console of a VM located on Proxmox, the console no longer connects. No error messages are given, just a “Loading” message. On the Proxmox host we see a connection attempt and it times out.

Expected outcome:
Console to show up. Worked fine prior to 3.9 update (worked in 3.8).

Foreman and Proxy versions:
Foreman 3.9

Foreman and Proxy plugin versions:
rubygem-fog-proxmox-0.15.0-1.el8.noarch
rubygem-foreman_fog_proxmox-0.15.0-1.fm3_9.el8.noarch
rubygem-fog-json-1.2.0-4.el8.noarch
rubygem-fog-core-2.3.0-1.el8.noarch

Distribution and version:
RHEL 8

Other relevant data:

You need to follow additional steps in order to make console for Proxmox work as it uses VNC console. Here is the docs for it: Provisioning Virtual Machines in Proxmox - orcharhino documentation

I hope it helps.

It worked before the upgrade. Looking at the source inspecting in Chrome the data-host variable is being left empty in the file generated by vnc.html.erb.