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

Add error source #1954

Merged
merged 1 commit into from
Feb 4, 2025
Merged

Add error source #1954

merged 1 commit into from
Feb 4, 2025

Conversation

zoltanbedi
Copy link
Member

@zoltanbedi zoltanbedi commented Jan 23, 2025

Fixes #1879

@zoltanbedi zoltanbedi requested a review from a team as a code owner January 23, 2025 11:40
@zoltanbedi zoltanbedi self-assigned this Jan 23, 2025
@@ -16,7 +16,6 @@ import (
)

var (
ErrFunctionsNotSupported = errors.New("zabbix queries with functions are not supported")
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed this because it is not used.

@@ -14,6 +15,7 @@ func convertTo(value *simplejson.Json, result interface{}) error {

err = json.Unmarshal(valueJSON, result)
if err != nil {
backend.Logger.Debug("Error unmarshalling JSON", "error", err, "result", result)
Copy link
Member Author

Choose a reason for hiding this comment

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

We have some errors related to JSON unmarshalling. It would be nice to figure out which type fails here so we could fix it.

@ivanahuckova ivanahuckova self-requested a review January 31, 2025 09:48
Copy link
Member

@ivanahuckova ivanahuckova left a comment

Choose a reason for hiding this comment

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

LGTM! Great job 🚀

Copy link

@itsmylife itsmylife left a comment

Choose a reason for hiding this comment

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

LGTM

@zoltanbedi zoltanbedi merged commit c2ffd31 into main Feb 4, 2025
13 checks passed
@zoltanbedi zoltanbedi deleted the add-error-source branch February 4, 2025 11:40
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.

Zabbix: Improve error source in query data
3 participants