File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
+ ## [ 4.5.8] - 2024-12-05
4
+
5
+ - Chore: Fix error source for invalid or missing authentication token
6
+
3
7
## [ 4.5.7] - 2024-10-30
4
8
5
9
- Chore: Bump uplot to 1.6.31
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " grafana-zabbix" ,
3
- "version" : " 4.5.7 " ,
3
+ "version" : " 4.5.8 " ,
4
4
"description" : " Zabbix plugin for Grafana" ,
5
5
"homepage" : " http://grafana-zabbix.org" ,
6
6
"bugs" : {
Original file line number Diff line number Diff line change @@ -121,12 +121,12 @@ func (zabbix *Zabbix) Authenticate(ctx context.Context) error {
121
121
if authType == settings .AuthTypeToken {
122
122
token , exists := zabbix .dsInfo .DecryptedSecureJSONData ["apiToken" ]
123
123
if ! exists {
124
- return errors .New ("cannot find Zabbix API token" )
124
+ return backend . DownstreamError ( errors .New ("cannot find Zabbix API token" ) )
125
125
}
126
126
err = zabbix .api .AuthenticateWithToken (ctx , token )
127
127
if err != nil {
128
128
zabbix .logger .Error ("Zabbix authentication error" , "error" , err )
129
- return err
129
+ return backend . DownstreamError ( err )
130
130
}
131
131
zabbix .logger .Debug ("Using API token for authentication" )
132
132
return nil
You can’t perform that action at this time.
0 commit comments