AutoKuma icon indicating copy to clipboard operation
AutoKuma copied to clipboard

WARN [kuma_client::util] Error while parsing snippet arguments

Open johntdyer opened this issue 8 months ago • 4 comments

hostname = "192.168.120.254"
max_retries = 3
mqtt_success_message = '{"state":"online"}'
mqtt_topic = "zigbee2mqtt/bridge/state"
name = "[mqtt] Zigbee2mqtt"
parent_name = "group-automation"
port = 1883
type = "mqtt"

I have also tried

mqtt_success_message = "{\"state\":\"online\"}"

but both result in the same warning.

WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3
WARN [kuma_client::util] Error while parsing snippet arguments: expected `,` or `}` at line 5 column 3

The good news is that the check is created and seemingly works , I just got this spam in the logs

johntdyer avatar May 08 '25 13:05 johntdyer

The error doesn't seem to be related to the posted config. The error is saying that autokuma is unable to parse the arguments in a snippet call (i.e. a label starting with __ like kuma.__web: '"example.com", 443')

BigBoot avatar May 08 '25 16:05 BigBoot

oh wow, thats interesting ... any additional info on which part of the compose file in particular its unhappy with?

johntdyer avatar May 08 '25 16:05 johntdyer

so to be clear it has nothing to do w/ the example I posted? Also if it is in fact a label error, as you suggested, is there any way to provide context to which container is the problem?

johntdyer avatar Sep 19 '25 17:09 johntdyer

For example, I now have this error

WARN [kuma_client::util] Error while parsing snippet arguments: expected value at line 6 column 1

but not clue where in my 100 compose files and or 60+ static monitors is the problematic one :)

johntdyer avatar Sep 19 '25 18:09 johntdyer