Skip to content
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

Fix error source for invalid or missing authentication token #1927

Closed
wants to merge 1 commit into from

Conversation

ivanahuckova
Copy link
Member

Fixes https://github.com/grafana/data-sources/issues/251 and creates a patch release.

It makes following errors downstream:

  • missing token
  • authentication error when using token

@ivanahuckova ivanahuckova requested a review from a team as a code owner December 5, 2024 15:29
}
err = zabbix.api.AuthenticateWithToken(ctx, token)
if err != nil {
zabbix.logger.Error("Zabbix authentication error", "error", err)
return err
return backend.DownstreamError(err)
Copy link
Collaborator

@yesoreyeram yesoreyeram Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. While you are here, can you also update the remaining auth errors in this file such as https://github.com/grafana/grafana-zabbix/pull/1927/files#diff-5208b24d9796d40dfcd17ea2b6bc1f0b592a8358db7416e02ace589ab32b90f2R147 otherwise we may end up in multiple patch releases.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed that and that has more complex logic. So will need to address it better. Turning this to draft in the meantime.

@ivanahuckova ivanahuckova marked this pull request as draft December 5, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants