Error while loading charts in dashboard

Try refreshing the page, or look below for more information on the error that occured.

TypeError: Cannot read properties of undefined (reading 'length') at qZ (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:264:7209) at div (<anonymous>) at q8 (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:264:11177) at div (<anonymous>) at div (<anonymous>) at https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:424:20731 at k (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:27726) at u (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:2332) at eRQ (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:424:43191) at k (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:27726) at h (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:3447) at eR0 (<anonymous>) at pd (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:28:86221) at div (<anonymous>) at div (<anonymous>) at A (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:572:44179) at A (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:572:44810) at s9 (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:1:246806) at lo (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:1:247315) at ll (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:1:248280) at lw (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:28:483) at eNb (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:426:38809) at p (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:2524) at M (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:10870) at pd (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:28:86221) at lD (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:28:1595) at K (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:586:456) at eNx (https://hosted.mender.io/ui/main.min.js?f1a0232642e00048:426:50268)

I connected the device to the server, changed some options in the chart settings and it stopped working.

Thanks

Hi @adrian.dusinski,

Thanks for reaching out! I’m in touch with the devs who are preparing a fix, and there are two workarounds for now as far as I can see.

  1. adding all your devices to a group, as the bug seems to be triggered by the “ungrouped” selection.
  2. removing the widgets, you can do this via your browser console
const { token } = JSON.parse(localStorage.getItem('JWT'));
const url = '/api/management/v1/useradm/settings/me';
const res = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const etag = res.headers.get('etag');
const settings = await res.json();
settings.reports = (settings.reports || []).filter(r => r.group !== '*|=ungrouped=|*');
await fetch(url, {
    method: 'POST',
    headers: { Authorization: `Bearer ${token}`, 'Content-Type': 'application/json', ...(etag ? { 'If-Match': etag } : {}) },
    body: JSON.stringify(settings)
  }).then(r => console.log(r.ok ? 'fixed — reload the UI' : `failed: ${r.status}`));

This should remove the crashing widget.

Greetz,
Josef

I did both option and it helps.

Thanks,

Adrian