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

Cannot read property 'length' of undefined #108

Open
dwsorge opened this issue Aug 19, 2020 · 14 comments
Open

Cannot read property 'length' of undefined #108

dwsorge opened this issue Aug 19, 2020 · 14 comments

Comments

@dwsorge
Copy link

dwsorge commented Aug 19, 2020

Hello,

I am using the heatmap plugin with MetaQuery and I am getting "Cannot read property 'length' of undefined".

The Grafana query inspector is returning data which is coming from InfluxDB.

When I view in Chrome the error is: Cannot read property 'length' of undefined
When I view in IE the error is: Cannot read property 'length' of undefined or null reference

I am using Grafana v7.1.3
MetaQuery 0.0.3

This is working with Grafana v6.2.5 and MetaQuery 0.0.1 but this issue is blocking our upgrade.

The queries I'm using look like this

SELECT sum("available") FROM "" WHERE ("site" =~ /^<grafana_site_var>/ AND "resource" =~ /^<grafana_resource_var>$/) AND $timeFilter GROUP BY time(1h) fill(none)

image

@Gauravshah
Copy link
Member

can you try changing it to a table to better understand the numbers ?
can you also post a screenshot of your panel setting ?
can you try with meta-queries latest with grafana 6.2.5 just to make sure its not metaqueries bug

@dwsorge
Copy link
Author

dwsorge commented Aug 20, 2020

I changed to a table and it still showing no data.

image

When I remove meta-queries I can get the data to show up in the table.

I tried running the latest meta-queries with Grafana v6.2.5 and it works there.

Here are the panel settings:

image

image

The query inspector shows that there is data when using the latest meta-queries with Grafana v7.1.3 but I still get the error when it tries to show the carpet plot.

image

@dwsorge
Copy link
Author

dwsorge commented Sep 1, 2020

Hello,

Is there any other info I can provide you that would be useful?

Thanks!

@favorinfo
Copy link

the same problem with grafanav7.13 and master version
query with influxdb

@jonathonpuff
Copy link

Possible to get this prioritized and assigned? We're stuck on 6.2.5 until resolved.

@jonathonpuff
Copy link

@Gauravshah can you revisit this? Like I mentioned in February we're locked into 6.2.5 until this gets addressed.

@jonathonpuff
Copy link

@Gauravshah any feedback or required information?

@Gauravshah
Copy link
Member

apologies @jonathonpuff stuck into multiple things at work and unable to get on this one.
@ShilpaSivanesan should be able to take a look at this in 4 weeks time

@jonathonpuff
Copy link

Hi @Gauravshah and @ShilpaSivanesan , is this still on the list to be looked at? Thanks for the help here.

@vineethpaul
Copy link

vineethpaul commented Dec 8, 2022

@jonathonpuff
Please share screenshot of your query panel. May I know the datasource and it's version.

@dwsorge
Copy link
Author

dwsorge commented Dec 23, 2022

Here is the query panel

image

The data is originating from InfluxDB but we are using MetaQueries 0.0.9 from here (https://grafana.com/grafana/plugins/goshposh-metaqueries-datasource/)

The version of Grafana where this isn't working is v8.5.4 and the version where we do have it working is v6.2.5.

From the query inspector I can see that we are getting data that should be displayed but the panel is empty.

image

Thank you very much

Dustin

@jonathonpuff
Copy link

Hi @vineethpaul , any feedback on @dwsorge input?

@jonathonpuff
Copy link

Hi @vineethpaul , any progress?

@jonathonpuff
Copy link

Hi @vineethpaul checking in on when this can be looked at. Thanks!

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

5 participants