diff --git a/docs/widgets.md b/docs/widgets.md index 69bd8f7c..84d5eea2 100644 --- a/docs/widgets.md +++ b/docs/widgets.md @@ -2130,6 +2130,11 @@ This will show the list of VMs, with a title and a linked fotter, hiding VM temp footer_as_link: true hide_templates: 1 ``` +#### Troubleshooting +- **404 Error in development mode**: The error might disappear in production mode `yarn start` +- **500 Error in production mode**: Try adding the certificate authority (CA) certificate of your Proxmox host to Node.js. + - Download the Proxmox CA certificate to your Dashy host. + - Export environment variable `NODE_EXTRA_CA_CERTS` and set its value to the path of the downloaded CA certificate. Example: `export NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/devlab_ca.pem` #### Info - **CORS**: 🟠 Proxied diff --git a/src/components/Widgets/Proxmox.vue b/src/components/Widgets/Proxmox.vue index 78da0e18..5ae09fcc 100644 --- a/src/components/Widgets/Proxmox.vue +++ b/src/components/Widgets/Proxmox.vue @@ -94,7 +94,7 @@ export default { } }, processData(data) { - this.data = data.data.sort((a, b) => a.vmid > b.vmid); + this.data = data.data.sort((a, b) => Number(a.vmid) > Number(b.vmid)); if (this.hideTemplates) { this.data = this.data.filter(item => item.template !== 1); }