influxdata / chronograf

Open source monitoring and visualization UI for the TICK stack
https://www.influxdata.com/time-series-platform/chronograf/
Other
1.5k stars 258 forks source link

Chronograf (1.8.0) - unable to retreive user list - Cannot read property 'name' of undefined #5720

Closed KannappanSomu closed 3 years ago

KannappanSomu commented 3 years ago

What browser are you using (name and version)? chrome 89.0.4389.114

What operating system are you using? windows

Please describe what you were trying to do when you encountered this error:

Below error is seen in chronogarf all users page , and when i click report error link it give below logs

image

TypeError: Cannot read property 'name' of undefined
    at https://metrics.volvocars.net/src.5692061f.js:4911:4187
    at Array.map (<anonymous>)
    at d.get (https://metrics.volvocars.net/src.5692061f.js:4911:4112)
    at d.value (https://metrics.volvocars.net/src.5692061f.js:4911:2697)
    at d.value (https://metrics.volvocars.net/src.5692061f.js:1913:2204)
    at Ba (https://metrics.volvocars.net/src.5692061f.js:717:65834)
    at ja (https://metrics.volvocars.net/src.5692061f.js:717:65629)
    at $a (https://metrics.volvocars.net/src.5692061f.js:717:69008)
    at oo (https://metrics.volvocars.net/src.5692061f.js:717:91055)
    at uo (https://metrics.volvocars.net/src.5692061f.js:717:91442)
sranka commented 3 years ago

Can you please try to reproduce it with 1.8.10 ? You can download it from https://portal.influxdata.com/downloads/ .

sranka commented 3 years ago

I inspect the code in order find the code that fails, it is: https://github.com/influxdata/chronograf/blob/661bc9d8cd89990aca552265cb631385e041e355/ui/src/admin/components/chronograf/AllUsersTableRow.tsx#L111

There is no change in this file since 1.8.0, so it is unlikely to be fixed in 1.8.10 .

KannappanSomu commented 3 years ago

Is this a bug ?

sranka commented 3 years ago

It is very likely a defect, a role references an organization that does not exist / (it is hidden). Can you please also share the InfluxDB version?

KannappanSomu commented 3 years ago

Its 1.8.2

image