After the update my Maker API which was used to integrate with my home assistant is failing.
looking at the log,
groovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types: (com.hubitat.hub.domain.Location, java.lang.String) values: [Hubitat, eventHandler]
Possible solutions: wait(), any(), trim(), collect(), size(), split() on line 524 (method setPostURL)
I see that the latest update had Groovy version updated from 2.4.19 to 2.4.21. i think the security updates within the groovy is breaking the maker API url parser. please fix.
tried restoring the backup but the platform version remains the same. it did restore the previous settings, but the maker API error remains. and I assume the groovy version is still the new one.
restoring to previous platform worked. i can now process the postURL without receiving an error. until this is patched, makerAPI won't be able to post events.
Are you talking about HACS-Hubitat v0.7.1 ? I am just in the process of setting it up and getting that same error and the integration in HA says "Failed to set up - check the logs".
Curiously, the event server in HA is set up and listening because I can curl dummy event posts to it:
curl --data '{"id":"66"}' http:\qnap-nas:8124
and HA complains the id is incorrect:
2022-04-01 06:21:26 WARNING (MainThread) [hubitatmaker.hub] Received invalid event: {'id': '33'}
2022-04-01 06:22:27 WARNING (MainThread) [hubitatmaker.hub] Received invalid event: {'id': '66'}
To recap:
Issue on Platform 2.3.132: Maker API cannot parse the postURL for events anymore. You can easily test this by checking the Log or trying to hit the URL from browser.
Example:
http://[hubitatipaddress]/apps/api/5/postURL/[eventServeripadress:port]?access_token=[makerapitoken]
it'll return a java lang exception error
underlying error is "groovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types: (com.hubitat.hub.domain.Location, java.lang.String) values: [Hubitat, eventHandler]
Possible solutions: wait(), any(), trim(), collect(), size(), split() on line 524 (method setPostURL)"
on platform 2.3.0.124:
http://[hubitatipaddress]/apps/api/5/postURL/[eventServeripadress:port]?access_token=[makerapitoken]
will return the url of the event server and it's port.
@user624 - yes it is - I just wanted to check the version of integration you were referring to.
app:662022-04-01 09:09:17.408 errorgroovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types: (com.hubitat.hub.domain.Location, java.lang.String) values: [Hubitat-HA, eventHandler]
Possible solutions: wait(), any(), trim(), collect(), size(), split() on line 524 (method setPostURL)
My hub came with platform 2.2.9.146 installed, it was upgraded twice to 2.3.1.130 and then 2.3.1.132, At least those are the 3 versions visible in diagnostic tool when rolling back.
I can confirm HACS-Hubitat setup worked after restarting HA when HE is running 2.2.9.146 but fails with 2.3.1.xxx.
The event posting was working despite the config error. I just edited the log content I posted a) to remove the ip address and b) because this community platform complained about having real links in the content.