Authentification error "user token not found" when configuring or using two grafana plugins

  • What Grafana version and what operating system are you using?
    Dockerized grafana/grafana:latest

  • What are you trying to achieve?
    I’m trying to use plugins like JSON Fetcher or NGSI-LD Datasource

  • What happened?
    I always get this kind of message
    logger=authn.service t=2024-06-27T07:01:08.947612092Z level=warn msg=“Failed to authenticate request” client=auth.client.session error=“user token not found”

  • With NGSI-LD Datasource I can’t save and test the datasource…
  • With JSON Fetcher, I can save and test the datasource, but the error occurs when I try to query the API (I checked the url, of course)
  • What did you expect to happen?
    I should have data (I checked the URL using Postman, and of course I translated localhost (Postman), to host.docker.internal when using dockerized grafana

  • Can you copy/paste the configuration(s) that you are having problems with?
    I’m using Basic Auth with credentials admin/admin and I skip TLS Verify

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    2024-06-27 09:01:08 logger=authn.service t=2024-06-27T07:01:08.947612092Z level=warn msg=“Failed to authenticate request” client=auth.client.session error=“user token not found”
    2024-06-27 09:01:12 logger=authn.service t=2024-06-27T07:01:12.344630289Z level=warn msg=“Failed to authenticate request” client=auth.client.session error=“user token not found”

  • Did you follow any online instructions? If so, what is the URL?
    GitHub - nagasudhirpulla/grafana-api-backend-datasource

Your help will be very much appreciated
Richard

I would use Infinity plugin for Grafana | Grafana Labs , because it’s Grafana Labs owned plugin, which will have better implementation probably than third party plugin.

1 Like

Good point, and at least it works, Thanks ! -
but if possible I’m still wanting to use some context aware NGSI-LD plugin instead of pure JSON…

I would say that you should contact developer of that plugin and request compatibility with your Grafana version.