grafana/grafana-json-datasource

Occur fail in datasource

nijuichien opened this issue · 2 comments

I use this plugin version 1.3.3(current latest), and I got the failure when adding a new data source.
Fail Message is below:
Unexpected token '<' Evaluating http://localhost:3000/public/@emotion/css Loading plugins/marcusolsson-json-datasource/module.

My current resolution is check the plugin under the version 1.3.3, and it's work when adding data source.

Hi @marcusolsson @nijuichien, could you please also help me with a similar issue?

  • Grafana is deployed by helm v7.3.6 (ea06633c34).
    • I know the version is old but it is deployed from our local repository & totally enough for the scopes we are using it. Resolving the plugin issue without needing to upgrade the Grafana version would be much appreciated.
  • The plugin is mentioned in the helm .Values.plugins
plugins:
  - marcusolsson-json-datasource
  • Here is the version checking from within the pod: grafana-cli plugins ls : marcusolsson-json-datasource @ 1.3.4
    • What is interesting is that I didn't find such a version in the GitHub releases

It was working properly until today noticed the following error, nothing was changed/updated in Grafana (as much as I checked).
Both on attempting to create a new datasource and on opening the existing datasources of this kind we got the following:

Unexpected token '<' Evaluating https://prod.grafana.<MY_DOMAIN>.net/public/@emotion/css Loading plugins/marcusolsson-json-datasource/module
Data Source Error

Accordingly, dashboards using marcusolsson-json-datasource datasource also not working as well.

What I have tried:

  • Restarted the Grafana pod.
  • Uninstalled the plugin by grafana-cli & redeployed the pod - the /var/lib/grafana/plugins/marcusolsson-json-datasource directory has been created but still getting the same error.

PS. Please let me know if any further info was needed. Thank you in advance.

image


Update - Resolved

Eventually I have solved the issue by downgrading/deploying the v1.3.2 of the plugin - 1.3.3 & 1.3.4 had the same issue/error.

Can you try with the latest version of plugin and latest version of grafana? Also I recommend consider switching to Infinity datasource plugin. ( we are planning to deprecate JSON API plugin, in an effort to unify our JSON/CSV plugins and in favour of Infinity. Infinity is a grafana maintained JSON/CSV/XML/GraphQL plugin which supports native grafana functionalities such as alerting, recorded queries, public dashboards etc. )