-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request failed, status: 401 Unauthorized #1327
Comments
I updated to grafana-8.0.7 and the issue is still present with alexanderzobnin-zabbix-app-4.2.4. grafana-8.0.7 + alexanderzobnin-zabbix-app-4.1.5 is working correctly. I am using basic http auth in Zabbix server, could this be related? |
I think this is basic auth related. I'm also using basic auth. I upgraded to 4.2.4 today and started getting the same error as you. I restored my VM (I hadn't kept track of what version I was on) and 4.1.5 is working again. So something must have gone awry with basic auth and 4.2.0 onward.. |
Hi @alexanderzobnin , can you take a look at this issue? It takes a long time in the new versions. |
+1 |
I generated the Authorization header by myself and added it to the Custom HTTP Headers in the Datasource. But it's kind of a crutch. |
Looks like it was bug in SDK and when http client created, basic auth settings was ignored. This PR solves the issue, so I just updated dependency and checked out that basic auth should be enabled. |
Describe the bug
I updated to Grafana 8.1.6 + grafana-zabbix 4.2.4. After that I am getting the message "request failed, status: 401 Unauthorized" both in the dashboard and in datasource settings.
Expected behavior
Instedad of error "request failed, status: 401 Unauthorized" I expect to get Zabbix alerts in my dashboard and no error in datasource settings when I do "Save & Test".
Screenshots
Log data
grafana.log:
Software versions
The text was updated successfully, but these errors were encountered: