Closed emes closed 4 years ago
Hey @emes. Thanks for #34, already merged.
I will have a look into this, as I'm currently working on #28. I forked node-lox-ws-api and added error messages.
Regarding your issue I don't think it will be possible to "wait" for the connection to come up, as this could be never (e.g. on erorrs). But I have to fix that node-red-contrib-loxone will not crash and simply not answer the request. Thus the delay-node workaround will still be needed.
Open to better solutions, though.
Cheers, Patrik
fixed in 0.10.3
I've also added a log entry, when a webservice is called and structureData
(msInfo) is not there. The request will be processed as long as a connection to the miniserver is established.
Sending a request with the Webservice node immediately after starting Node-RED consistently results in a crash. This happens because structureData.msInfo is not there yet. Probably related to https://github.com/codmpm/node-red-contrib-loxone/issues/12
Same on non-Docker hosts.
Easy workaround is to put a delay node in front of the webservice node, use a status node to monitor the webservice node, and override the delay when the webservice node is not connected. Something like:
Miniserver is running 10.3.11.25 but first noticed this shortly after msInfo was added. Apologies for not reporting at the time.