I have never heard of openiap so I can't help on that side at all, but the Error - ERR_HTTP_HEADERS_SENT usually means that you are sending two (or more) responses back to some http request when you should only send one. No idea if you/your app is doing that or the openiap.
As regards your initial error - that seems likely to be coming from however Node-RED has been wrapped up to become noderedlocal. Again we have no idea about what that is.