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

Endpoint is displayed as green although the endpoint has an error #1000

Open
ThomasWetzel opened this issue Feb 7, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ThomasWetzel
Copy link

Describe the bug

I monitor an endpoint and want to compare a value of a json response:

If the endpoint returns something unexpected e. g.

{
"error": "One or both SOC values could not be retrieved"
}

then the endpoint indicator is green. Only if you hover over the endpoint then it is mentioned that there is an error.

What do you see?

A green endpoint although the endpoint has an error state.

What do you expect to see?

A red endpoint because the condition could not be resolved and the endpoint is not in an expected state.

List the steps that must be taken to reproduce this issue

  1. Create an endpoint with a condition that parses a json response.
  2. Return an unexpected result so it leads to an error.

Version

twinproduction/gatus:v3.3.3

Additional information

Thank you for your great work! :-)

@ThomasWetzel ThomasWetzel added the bug Something isn't working label Feb 7, 2025
@TwiN
Copy link
Owner

TwiN commented Feb 17, 2025

twinproduction/gatus:v3.3.3

This is old. I'd suggest you update to a newer version and try again.

That being said, it wouldn't surprise me if this was still a bug. [BODY].difference likely gets resolved to the numerical value 0 because the field difference doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants