Hi,
I’m using the “sendHttpGetRequest” to send text messages (SMS) to my phone in case certain events occur.
Yesterday I “missed” an important event. The cause was found in openhab.log:
2017-06-09 15:53:48.136 [INFO ] [g.eclipse.smarthome.model.script.SMS] - SMS API Call initiated
2017-06-09 15:53:53.139 [ERROR] [.smarthome.model.script.actions.HTTP] - Fatal transport error: java.util.concurrent.TimeoutException
2017-06-09 15:53:53.140 [ERROR] [.script.engine.ScriptExecutionThread] - Rule 'Send SMS when Alarm is triggered': cannot invoke method public boolean java.lang.String.startsWith(java.lang.String) on null
The time-out exception is triggered when no response has been received for 5000ms.
I have now increased this to 10000ms seconds (in http.cfg).
But I was wondering, is there a way to “catch” that exception in my rule? This allows me to execute a plan B (try to send the text again, or send a Pushover message).
Thanks,
Dries