grafana / grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource
Apache License 2.0
765 stars 103 forks source link

[Bug] thrown exception: '>' not supported between instances of 'NoneType' and 'int' #965

Closed vekien closed 2 months ago

vekien commented 2 months ago

Describe the bug

I keep getting this error whenever I try to fetch basic JSON data from my API, I can query it just fine using curl, using postman, etc... but in infinity I get:

thrown exception: '>' not supported between instances of 'NoneType' and 'int'

Steps to reproduce

I don't know how you'll reproduce, I am literally doing the most basic thing, I added the DataSource, I setup auth, everything tests fine with the health check, I am querying an API that returns some data and I immediately get this error.

Sample Data

Data is like this, there can be thousands of rows

[
  {
    "count": 1,
    "country": "United Kingdom",
    "lat": "51.3833",
    "lon": "-0.1000",
    "result": "_result",
    "table": 0
  },
  {
    "count": 1,
    "country": "United Kingdom",
    "lat": "51.3833",
    "lon": "-0.1000",
    "result": "_result",
    "table": 0
  },
]

Screenshots

Image

Version Details:

Additional context

I'm kinda just looking for ideas because I feel like I'm doing something super basic and simple but it's just not working, have I missed a step? Can I debug something?

vekien commented 2 months ago

Apologies, closed, this was my mistake....