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?
- Set up a data source that supports streaming data.
- Use
getGrafanaLiveSrv().getDataStream
to get a data stream from the backend. - 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
Metadata
Assignees
Type
Projects
Status
🧑💻 In development
Activity