openURL (async), for whatever reasons (remote server not available for instance) may throw an error message in the Domoticz log which will stop execution.
I have made many try and errors to understand LUA error catching mecanism. It gets more difficult with an async function because the error is not triggered at the time openURL is called.
Event worse the error message transcript in Domoticz log shows account name and password
Code: Select all
http://192.168.21.247:50001/webapi/auth.cgi?api=SYNO.API.Auth&method=Login&version=2&account=xxxxx&passwd=yyyyyyyyy&session=SurveillanceStation&format=sid
2020-05-13 11:26:58.610 Error: dzVents: Error: (3.0.4) camera script: HTTP/1.1 response: 7 ==>> Couldn't connect to server As a side note, assert is not usable in the context of dzvents. As matter of fact if an error condition arises, the script is stopped rightaway.
Thank you