Skip to content

Dashboards: Cannot read properties of undefined (reading 'length') on Dashboard Refresh #88280

Open
@MakinoharaShoko

Description

What happened?

I am developing a Grafana plugin that supports streaming data and involves a backend. The streaming data works fine when I first land on it, but when I click on "Refresh Dashboard", the streaming breaks and the console shows the error:

Uncaught TypeError: Cannot read properties of undefined (reading 'length')
at PanelQueryRunner.ts:157:55
at Array.map ()
at PanelQueryRunner.ts:155:49
at map.js:7:37
at E._next (OperatorSubscriber.js:15:21)
at Q.next (Subscriber.js:34:18)
at y._subscribe (innerFrom.js:51:24)
at y._trySubscribe (Observable.js:38:25)
at Observable.js:32:31
at u (errorContext.js:19:9)

What did you expect to happen?

Data flow executes normally after refresh

Did this work before?

No

How do we reproduce it?

  1. Set up a data source that supports streaming data.
  2. Use getGrafanaLiveSrv().getDataStream to get a data stream from the backend.
  3. Refresh the dashboard while the data stream is running.

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana: v10.3.3 (2527612)
OS: Linux Ubuntu 20.04
Browser: Chrome 125.0.6422.61

Grafana platform?

None

Datasource(s)?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    🧑‍💻 In development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions