grafana-timelion-datasource
grafana-timelion-datasource copied to clipboard
Cannot read property 'match' of undefined
Hi @gbrian
Thanks a lot for this plugin. We are trying to configure it, and we are getting some errors. On the 'Data source' definition, after putting the kibana url and clicking on 'Save and test', we get the message:
{"title":"TypeError: Cannot read property 'match' of undefined","message":"TypeError: Cannot read property 'match' of undefined"}
Then, if we create a graph, and put a query like '.es(timefield=metadata.timestamp)', we get the error:
"statusCode":400,"error":"Bad Request","message":"Browser client is out of date, please refresh the page"}
Looking at the request headers, there is something like 'kbn-version:5.3.0'. We are running with a different kibana version (5.5.2). Are we supposed to change this value?
Best regards, pablo
Hi @psaiz, To see the correct value, open devtools in chrome or firefox and check the values set for those headers. In case this in the problem this setting must be move to the datasource configuration page.
Please let me know if this setting is the problem.
Hi Gustavo,
Thanks a lot for the quick reply. Indeed, changing the value of the kbn-version by hand solved the issue.
It would be nice if this could be configured as a parameter of the data source, or, even better, if the data source could somehow guess the version of kibana (although I'm not sure if that is possible.
Cheers, pablo