Closed jeffdgr8 closed 3 months ago
Modifying the code to log the stack trace to the logger, I see it's failing on this line:
d := row["data"].(map[string]interface{})
Looking into this more, it seems it does this when you don't include either str_time_range
or time_range
in the query, so it doesn't get modified to have a data
key in the query results. I need to better understand the code to understand what the proper way to handle this should be, but an appropriate error message at a minimum should be expected.
HI @jeffdgr8 , yes, using str_time_range
or time_range
in the query is required for the Grafana plugin because all queries are expected to have a time filter.
When querying a Couchbase datasource using the plugin, I consistently get 500 errors for all valid queries (invalid queries give other errors). Using the travel-sample bucket and this query:
I get this error response:
These are the Docker logs:
This is with the latest version of Grafana, v10.2.3.