gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Endpoint is displayed as green although the endpoint has an error

Open ThomasWetzel opened this issue 10 months ago • 1 comments

Describe the bug

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

  • name: evcc-kia-soc url: "http://10.2.200.232:8090/soc-difference" method: "GET" interval: "1m" conditions:
    • "[BODY].difference < 5"

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 avatar Feb 07 '25 15:02 ThomasWetzel

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.

TwiN avatar Feb 17 '25 15:02 TwiN

Closing as cannot reproduce

TwiN avatar Aug 15 '25 15:08 TwiN