Problem with backend - ` Trying to get property 'device_id' of non-object `

On the dashboard it is not possible to see service status out of the sudden. When looking at the service availability-map they show just fine.

  • No service is unknown, warning or critical, all good

  • The issue came out of nowhere. It worked and then it just stopped.

  • Already tried to work backwards to figure out what causes this error since it worked before adding more nodes and service checks

  • Poller is running with new service setup, works fine and faster than cron

  • LibreNMS hostname and Specific URL are correct and also the same in config.php and .env.

  • There is no custom css, logo or favicon active

  • PHP7.4

  • all required plugins installed

  • validate gives no errors on cli nor in WebUI

  • librenms was at stable, error appeared, update to master, still the same issue

XHRPOST https://MYDOMAIN/ajax/dash/availability-map
[HTTP/2 500 Internal Server Error 52ms]

"message": "Trying to get property 'device_id' of non-object (View: /opt/librenms/resources/views/widgets/availability-map.blade.php)",
 "exception": "ErrorException",
 "file": "/opt/librenms/LibreNMS/Util/Url.php",
"line": 228,

Can someone please look into this. I am happy to provide more info if required.
Thanks!