You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version affected 0.13.3 possibly other versions depending on when the changes to the catch node were done.
Nodejs version used 4.2.6 - shouldn't really matter but here for completeness
Catch node has a regression bug where It cannot import a catch node from older flow. And bugs the editor to push all nodes into the top left of the screen.
Throws - TypeError: Cannot read property 'length' of undefined
Example flow that will bug the editor: [{"id":"7c1d630a.83e29c","type":"catch","name":"Catch Everything","x":773,"y":613,"z":"144a3a03.ebb5c6","wires":[[]]}]
line 4736 in node-red/public/red/red.js is calling the label function of the catch node and it throws an error. l = (typeof l === "function" ? l.call(d) : l)||"";
The label function that the above code is calling. Was logged out while i was debugging.
Offending code actually comes from node-red/nodes/core/core/25-catch.html
line 109
function () {
return this.name||this.scope?this._("catch.catchNodes",{number:this.scope.length}):this._("catch.catch");
}
Stack trace from browser
TypeError: Cannot read property 'length' of undefined
at Object.RED.nodes.registerType.label (eval at <anonymous> (http://localhost:8079/admin/vendor/vendor.js:2:2622), <anonymous>:13:86)
at SVGGElement.<anonymous> (http://localhost:8079/admin/red/red.js:4739:54)
at http://localhost:8079/admin/vendor/vendor.js:1143:9360
at Tn (http://localhost:8079/admin/vendor/vendor.js:1141:8521)
at Array.Ma.each (http://localhost:8079/admin/vendor/vendor.js:1143:9334)
at redraw (http://localhost:8079/admin/red/red.js:4734:23)
at Object.importNodes (http://localhost:8079/admin/red/red.js:5316:17)
at HTMLDivElement.$.appendTo.dialog.buttons.click (http://localhost:8079/admin/red/red.js:7833:38)
at HTMLButtonElement.s.click (http://localhost:8079/admin/vendor/vendor.js:17:9472)
at HTMLButtonElement.m.event.dispatch (http://localhost:8079/admin/vendor/vendor.js:4:8549)
red.js:4733 [Array[2]]
The text was updated successfully, but these errors were encountered:
Version affected 0.13.3 possibly other versions depending on when the changes to the catch node were done.
Nodejs version used 4.2.6 - shouldn't really matter but here for completeness
Catch node has a regression bug where It cannot import a catch node from older flow. And bugs the editor to push all nodes into the top left of the screen.
Throws - TypeError: Cannot read property 'length' of undefined
Example flow that will bug the editor:
[{"id":"7c1d630a.83e29c","type":"catch","name":"Catch Everything","x":773,"y":613,"z":"144a3a03.ebb5c6","wires":[[]]}]
line 4736 in node-red/public/red/red.js is calling the label function of the catch node and it throws an error.
l = (typeof l === "function" ? l.call(d) : l)||"";
The label function that the above code is calling. Was logged out while i was debugging.
Offending code actually comes from node-red/nodes/core/core/25-catch.html
line 109
Stack trace from browser
The text was updated successfully, but these errors were encountered: