Exception when using the data source to query variables: TypeError Cannot read properties of undefined (reading 'datasource')
bigqi0812 opened this issue · 6 comments
Grafana: 9.5.1
plugin version 0.6.4
Steps:
- create a simple json data source pointing to an http endpoint.
- Create a dashboard with a "query" type of variable using the just created data source.
- click on "query data"
Expected:
Grafana should make the /variable query to the http endpoint via the simple json data source
Actual:
exception thrown:
TypeError: Cannot read properties of undefined (reading 'datasource')
Exception Details
actions.ts:893
TypeError: Cannot read properties of undefined (reading 'datasource')
at query (VariableSupport.ts:31:32)
at I (runRequest.ts:201:37)
at A (runRequest.ts:137:26)
at up.runRequest (queryRunners.ts:149:12)
at gp.onNewRequest (VariableQueryRunner.ts:120:10)
at U.next (Subscriber.js:96:33)
at P._next (Subscriber.js:63:26)
at P.next (Subscriber.js:34:18)
at Subject.js:41:34
at s (errorContext.js:19:9)
Everything was working fine with plugin version 0.6.3
Grafana 9 is not supported on v0.6. I'll bump the following constraint in v0.6.5
GrafanaJsonDatasource/src/plugin.json
Line 40 in 002b9ee
There has been lib bump #443
Thank you for your prompt reply. Do you mean I will need to use grafana >10.0.0?
This issue has been automatically marked as stale because it has not
had recent activity. It will be closed if no further activity occurs.
This issue has not seen any activity since it was marked stale.
Closing.
I have submitted new version to Grafana