Http binding: Timeout

I have the follwing command inside a rule…

logInfo("vWZpowerState", "sendHttpPostRequest() returns: " + sendHttpPostRequest(wzHost + wzCommandString, 10000))

and the generated string works immediately on the desired device, when I copy/paste it from the log to the browser. But my post statement inside the rules always results into a timeout:

2020-08-10 22:19:34.833 [ERROR] [.smarthome.model.script.actions.HTTP] - Fatal transport error: java.util.concurrent.TimeoutException: Total timeout 10000 ms elapsed
2020-08-10 22:19:34.840 [INFO ] [smarthome.model.script.vWZpowerState] - sendHttpPostRequest() returns: null

Any idea why? Thanks!

Is the server located in your local network or is it on the internet ?
Is it http or https ( browsers might replace http with https on their own ).
Does the server expect any specific User Agent ( others might be blocked ) ?
Is there any firewall in between your OH and the server ?

1 Like