Endpoint is displayed as green although the endpoint has an error
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
- Create an endpoint with a condition that parses a json response.
- Return an unexpected result so it leads to an error.
Version
twinproduction/gatus:v3.3.3
Additional information
Thank you for your great work! :-)
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.
Closing as cannot reproduce