"JSON API: NOT FOUND" when trying to import datasource with JSON API

When trying to create a Datasource using the JSON API Plugin I get an error saying “JSON API: Not found”. The URL works in browser, other URLs have been configured as datasource without any problem. Does anybody know why that could be?

  • What Grafana version and what operating system are you using?
    Grafana Version: 7.5.7
    OS: Alpine 3.10

  • What are you trying to achieve?
    Adding a JSON API datasource using
    https://my.url.de/icingaweb2/reporting/report/download?type=json&id=5

  • How are you trying to achieve it?

  • What happened?
    Error “JSON API: not found”

  • What did you expect to happen?

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

1 Like

It’s hard to say why this isn’t working. Is the API endpoint that you are hitting a public one? If we could test it then we could try and help you troubleshoot it. The creator of that plugin is a Grafana employee and actively maintains that project.

APIMOCk: https://6204e186161670001741afee.mockapi.io/netbox

grafana log:

grafana_1     | t=2022-02-11T04:20:29+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/extras/scripts/firsttest.MyScript/ status=404 remote_addr=10.18.32.82 time_ms=3 size=29 referer=http://10.2.76.63:3000/datasources/edit/YbxdNP-nz
grafana_1     | t=2022-02-11T04:20:41+0000 lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/extras/scripts/firsttest.MyScript/ status=404 remote_addr=10.18.32.82 time_ms=3 size=29 referer=http://10.2.76.63:3000/datasources/edit/YbxdNP-nz

Same problem out of the blue sometime it works
my doubt is this remote_addr being pointed to different address why

this saved me Infinity plugin for Grafana | Grafana Labs
Thanks !

1 Like

This topic was automatically closed after 365 days. New replies are no longer allowed.