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
762 stars 102 forks source link

[Bug] Infinity 0.8.3 does not show any data in RHEL 7.9/8.4.2 Grafana #280

Closed jtorkkel closed 2 years ago

jtorkkel commented 2 years ago

No data shown in Table/NodeGraph in Grafana 8.4.2 with Infinity 0.8.3 in RHEL 7.8

DataSouce is installed correctly.

Grafana 8.4.2 with infinity 0.8.3 works in Windows Grafana 8.3.4 with infinity 0.8.3 works in RHEL Grafana 8.4.2 with infinity 0.8.0 works in RHEL (old Node Graph layout) Grafana 7.5.7 with infinity 0.8.0 works in RHEL (old Node Graph layout)

Screenshots - No data in 8.4.2 image

GET http://1.2.3.4:3000/api/ds/query

{
    "results": {
        "A": {
            "frames": [
                {
                    "schema": {
                        "name": "A",
                        "refId": "A",
                        "meta": {
                            "custom": {
                                "data": "{\n\"hello\": \"word\"\n}",
                                "duration": 0,
                                "error": "",
                                "query": {
                                    "alias": "",
                                    "columns": [],
                                    "csv_options": {
                                        "columns": "",
                                        "comment": "",
                                        "delimiter": "",
                                        "relax_column_count": false,
                                        "skip_empty_lines": false,
                                        "skip_lines_with_error": false
                                    },
                                    "data": "{\n\"hello\": \"word\"\n}",
                                    "expression": "",
                                    "filters": [],
                                    "format": "table",
                                    "global_query_id": "",
                                    "groq": "",
                                    "json_options": {
                                        "columnar": false,
                                        "root_is_not_array": false
                                    },
                                    "query_mode": "",
                                    "refId": "A",
                                    "root_selector": "",
                                    "seriesCount": 0,
                                    "source": "inline",
                                    "type": "json",
                                    "uql": "",
                                    "url": "https://jsonplaceholder.typicode.com/users",
                                    "url_options": {
                                        "data": "",
                                        "headers": null,
                                        "method": "GET",
                                        "params": null
                                    }
                                },
                                "responseCodeFromServer": 0
                            },
                            "executedQueryString": "This feature is not available for this type of query yet"
                        },
                        "fields": []
                    },
                    "data": {
                        "values": []
                    }
                }
            ]
        }
    }
}```

**Screenshots - works data in 7.5.7**
![image](https://user-images.githubusercontent.com/19704268/157846907-f86351b1-790e-41e6-81eb-4d2c3c0be70a.png)

GET http://1.2.3.4:3000/api/ds/query

{ "results": { "A": { "refId": "A", "series": null, "tables": null, "dataframes": [ "QVJST1cxAAD/////eAEAABAAAAAAAAoADgAMAAsABAAKAAAAFAAAAAAAAAEDAAoADAAAAAgABAAKAAAACAAAAEQBAAADAAAAXAAAACgAAAAEAAAAuP///wgAAAAMAAAAAQAAAEEAAAAFAAAAcmVmSWQAAADY////CAAAABQAAAAIAAAAcmVzcG9uc2UAAAAABAAAAG5hbWUAAAAACAAMAAgABAAIAAAACAAAAMwAAADDAAAAeyJleGVjdXRlZFF1ZXJ5U3RyaW5nIjoiSWYgeW91IGFyZSBsb29raW5nIHRvIGluc3BlY3QgdGhlIHJlc3BvbnNlIGZyb20gdGhlIHNlcnZlciwgdXNlIGJyb3dzZXIgZGV2ZWxvcGVyIHRvb2xzLCBuZXR3b3JrIHRhYi4gWW91IHdpbGwgc2VlIGEgY2FsbCB0byBgcHJveHlgIHJvdXRlIHdoaWNoIGlzIHRoZSBhY3R1YWwgY2FsbCBtYWRlLiJ9AAQAAABtZXRhAAAAAAAAAAAQAAAADAAUABIADAAIAAQADAAAABAAAAAUAAAAJAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAKAAwAAAAIAAQACgAAAAgAAABEAQAAAwAAAFwAAAAoAAAABAAAALj///8IAAAADAAAAAEAAABBAAAABQAAAHJlZklkAAAA2P///wgAAAAUAAAACAAAAHJlc3BvbnNlAAAAAAQAAABuYW1lAAAAAAgADAAIAAQACAAAAAgAAADMAAAAwwAAAHsiZXhlY3V0ZWRRdWVyeVN0cmluZyI6IklmIHlvdSBhcmUgbG9va2luZyB0byBpbnNwZWN0IHRoZSByZXNwb25zZSBmcm9tIHRoZSBzZXJ2ZXIsIHVzZSBicm93c2VyIGRldmVsb3BlciB0b29scywgbmV0d29yayB0YWIuIFlvdSB3aWxsIHNlZSBhIGNhbGwgdG8gYHByb3h5YCByb3V0ZSB3aGljaCBpcyB0aGUgYWN0dWFsIGNhbGwgbWFkZS4ifQAEAAAAbWV0YQAAAAAAAAAAkAEAAEFSUk9XMQ==" ] } } }



Looks that response is threated differently in 8.4.2

**Version Details:**

- Grafana version : 8.4.2
- Plugin version : 0.8.3
- RHEL 7.9

**Additional context**
Add any other context about the problem here.
jtorkkel commented 2 years ago

Downgrade to 0.80 solve the issue. Also update to 8.4.3/0.8.3 worked.