Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disappearing data attribute #48

Open
ethansiegl opened this issue Jun 3, 2020 · 1 comment
Open

disappearing data attribute #48

ethansiegl opened this issue Jun 3, 2020 · 1 comment

Comments

@ethansiegl
Copy link

ethansiegl commented Jun 3, 2020

Sometimes after an error/exception has been thrown in the onHandleMetric code, the data which is passed to the javascript disappears. In other words, when trying to extract data from ctrl.data[0].datapoints, the value will be empty after an exception where previously it had a value.

The only way to restore the data is to delete the panel and create a new one.

I have seen this behavior when using the SVG panel with an elasticsearch datasource

@MarcusCalidus
Copy link
Owner

Is there a way to reliably reproduce this behaviour?
The only way I currently think this could happen is when the onDataReceived Event within the control is not raised anymore.
Which version of Grafana are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants