val returnvalue = sendHttpPutRequest("http://***:***@127.0.0.1:8080/rest/things/systeminfo%3Acomputer%3Aopuspi4","application/json",systemstatus_thing, 10000)
Why isn’t the following not working in javascript? HttpUtil.executeUrl("PUT", "http://****:*****@127.0.0.1:8080/rest/things/systeminfo%3Acomputer%3Aopuspi4", "application/json", systemstatus_thing, 10000)
systemstatus_thing is a string var holding the JSON.
I get the following error:
Script execution of rule with UID 'openHAB_processID' failed: TypeError: Can not invoke method [jdk.dynalink.beans.OverloadedDynamicMethod
String org.openhab.core.io.net.http.HttpUtil.executeUrl(String,String,InputStream,String,int)
String org.openhab.core.io.net.http.HttpUtil.executeUrl(String,String,int)
String org.openhab.core.io.net.http.HttpUtil.executeUrl(String,String,Properties,InputStream,String,int,String,Integer,String,String,String)
String org.openhab.core.io.net.http.HttpUtil.executeUrl(String,String,Properties,InputStream,String,int)
] with the passed arguments; they do not match any of its method signatures. in <eval> at line number 12