"Warning: msg properties can no longer override set node properties" 部署新的 Node-RED 流程时
"Warning: msg properties can no longer override set node properties" when deploying new Node-RED flow
我对 Node-RED 流程进行了一些更改,并在部署流程时看到弹出以下警告:
Warning: msg properties can no longer override set node properties.
See bit.ly/nr-override-msg-props
如何消除警告?
以上link说明:
In future nodes and future releases msg.some_property will only be
used if the property is not set in the node.
Nodes currently using the override functionality will continue to
function in this release but will also receive a warning noting that
this behaviour is deprecated.
The core nodes and properties affected by this behaviour are:
http request: msg.url and msg.method
email: msg.to
file: msg.filename
我意识到我在 function
节点中设置了 msg.url
,流程中的下一个 http request
节点设置了 URL。一旦我删除了功能节点中的 msg.url
,警告就消失了。
我对 Node-RED 流程进行了一些更改,并在部署流程时看到弹出以下警告:
Warning: msg properties can no longer override set node properties. See bit.ly/nr-override-msg-props
如何消除警告?
以上link说明:
In future nodes and future releases msg.some_property will only be used if the property is not set in the node.
Nodes currently using the override functionality will continue to function in this release but will also receive a warning noting that this behaviour is deprecated.
The core nodes and properties affected by this behaviour are:
http request: msg.url and msg.method email: msg.to file: msg.filename
我意识到我在 function
节点中设置了 msg.url
,流程中的下一个 http request
节点设置了 URL。一旦我删除了功能节点中的 msg.url
,警告就消失了。