You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Proxmox livestats 500 error with null handling
The livestats() method would crash with a 500 error when:
- API calls returned null (connection failures, permission issues)
- Node status/VM/container data was missing expected properties
- Division by zero when no valid nodes were found
Changes:
- Add null check in apiCall() before calling getBody()
- Check nodeData for null before array_map()
- Add null checks for node_status, vm_stats, and container_stats
- Track valid_nodes count to prevent division by zero
- Use null coalescing for optional properties (cpu, memory)
- Return "inactive" status gracefully instead of crashing
Fixeslinuxserver/Heimdall#1533
0 commit comments