Authn.service error

Hello,

I am pretty new to Grafana and would like to get help on my error below:

logger=authn.service t=2024-06-04T07:56:33.69504154Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=context userId=0 orgId=0 uname= t=2024-06-04T07:56:33.695263893Z level=warn msg=Unauthorized error="user token not found" remote_addr=202.73.62.130 traceID=
logger=context userId=0 orgId=0 uname= t=2024-06-04T07:56:33.695540482Z level=info msg="Request Completed" method=GET path=/api/datasources/uid/fdn2rhsdq0pogd/resources/api/v1/label/nodename/values status=401 remote_addr=202.73.62.130 time_ms=0 duration=825.078µs size=40 referer="http://xxxx:3000/d/edn52tli4660we1/node-exporter-system-stat?from=now-5m&orgId=1&refresh=5s&to=now" handler=/api/datasources/uid/:uid/resources/* status_source=server
logger=authn.service t=2024-06-04T07:56:33.786485254Z level=warn msg="Failed to authenticate request" client=auth.client.session error="user token not found"
logger=context userId=0 orgId=0 uname= t=2024-06-04T07:56:33.787015321Z level=warn msg=Unauthorized error="user token not found" remote_addr=202.73.62.130 traceID=
1 Like

at first glance this looks pretty straightforward; there is another app that is trying to do a GET operation on /api/datasources/uid/fdn2rhsdq0pogd/resources/api/v1/label/nodename/values and is being rejected because the token that it is passing is not valid.

To further troubleshoot, you’d need to provide more information on what you’re doing and how it’s failing. Here are some docs on the basics of how to do authentication against these APIs with bearer tokens, it can guide you on how to fix this.