In V2.2.2, the Function Node will send a message with code in the On Start tab, but V3.1.9 no longer outputs messages, and returns error messages.
node.send() does not send anything and no errors.
return msg; gives a "ReferenceError: msg is not defined"
Am i missing something?
It does, but it is dependant on order of creation and other factors. Read this: Messages sent via "On Start" only reliable on partial deploy but not during " nodered.service" start. Possible? - #7 by Steve-Mcl
As I would expect. The function will not have received an input msg, so it does not exist. (On start is the start of it's life's time & has never received a message)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.