Giter Club home page Giter Club logo

Comments (8)

belm0 avatar belm0 commented on June 14, 2024

it may be a Grafana issue (v 6.4.3)

Once a good URL is used with the datasource instance, changing to a bad URL will always show "data source is working", even if I leave and return to the datasource config.

Also strange is that even with a new datasource instance, I never see "data source is not working" for known bad URL's. It will just show "testing" briefly, and then no message box.

from grafanajsondatasource.

belm0 avatar belm0 commented on June 14, 2024

I couldn't reproduce the problem with other datasources (I tried InfluxDB), so it may be an issue with this plugin's implementation of testDatasource()?

I notice that json-datasource is merely returning an error response, while influxdb is throwing it:

https://github.com/simPod/grafana-json-datasource/blob/34f531c4d00ee92fdb708670deed4ca17dc43d85/src/datasource.ts#L57-L62

https://github.com/grafana/grafana/blob/fcde26e2dbd87bb864444714dff155dacc631e97/public/app/plugins/datasource/influxdb/datasource.ts#L338-L342

from grafanajsondatasource.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from grafanajsondatasource.

simPod avatar simPod commented on June 14, 2024

I believe it might be wrong. TBH I have not touched related code since forking from Grafana and never questioned it. I'll look into it when I have time or you can send PR. I guess it's not severe issue.

from grafanajsondatasource.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from grafanajsondatasource.

belm0 avatar belm0 commented on June 14, 2024

I suggest reviewing your project's staleness policy

from grafanajsondatasource.

simPod avatar simPod commented on June 14, 2024

It is required to return status code 200. I just tested with status codes != 200 and it reports "not working" correctly. How to reproduce?

from grafanajsondatasource.

stale avatar stale commented on June 14, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from grafanajsondatasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.