Missing method exception

not sure why this error is being thrown:

[app:2] 2018-07-06 05:53:00.299:errorgroovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types: (com.hubitat.hub.domain.Event) values: [com.hubitat.hub.domain.Event@58a99189] Possible solutions: wait(), any(), wait(long), any(groovy.lang.Closure), take(int), each(groovy.lang.Closure) (sunriseEventHandler)

here is the subscribe statement:

if (…) subscribe(location, "sunrise", sunriseEventHandler);

and the function definition:

def sunriseEventHandler()       {
…
}

thank you.

dont see the same error on ST ... may be HE passes in event data to the sunrise and sunset event handler?

Try: sunriseEventHandler(evt)...

1 Like

thanks ... updated the code already ... will check at sunset which is also similarly subscribed to.