Closed hyamanieu closed 1 year ago
Can you share a small flow that shows this ? I am unable to get it to fail based on a simple inject of null
or []
Thanks
Thanks for responding so quickly! Here's an importable code sample:
[
{
"id": "a72683cc5cd6f15e",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "31692e835acece2c",
"type": "ui_dropdown",
"z": "a72683cc5cd6f15e",
"name": "",
"label": "mitarbeiter",
"tooltip": "Mitarbeiter Anmelden",
"place": "auswählen",
"group": "e2459ea6aab21c76",
"order": 2,
"width": 6,
"height": 1,
"passthru": true,
"multiple": false,
"options": [
{
"label": "",
"value": "",
"type": "str"
}
],
"payload": "",
"topic": "payload.mitarbeiter",
"topicType": "msg",
"className": "",
"x": 910,
"y": 500,
"wires": [
[]
]
},
{
"id": "48292bafe507e974",
"type": "change",
"z": "a72683cc5cd6f15e",
"name": "",
"rules": [
{
"t": "set",
"p": "options",
"pt": "msg",
"to": "[]",
"tot": "json"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 780,
"y": 400,
"wires": [
[
"31692e835acece2c"
]
]
},
{
"id": "2be6d9a175c7b0e0",
"type": "inject",
"z": "a72683cc5cd6f15e",
"name": "",
"props": [],
"repeat": "3600",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"x": 530,
"y": 320,
"wires": [
[
"9378e80cf1cb75de"
]
]
},
{
"id": "51c36ff277bd9a6e",
"type": "change",
"z": "a72683cc5cd6f15e",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "null",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 680,
"y": 500,
"wires": [
[
"31692e835acece2c"
]
]
},
{
"id": "9378e80cf1cb75de",
"type": "switch",
"z": "a72683cc5cd6f15e",
"name": "",
"property": "KalanderDaten",
"propertyType": "global",
"rules": [
{
"t": "null"
},
{
"t": "else"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 670,
"y": 320,
"wires": [
[],
[
"48292bafe507e974"
]
]
},
{
"id": "e2459ea6aab21c76",
"type": "ui_group",
"name": "Default",
"tab": "5faeab580addd8f1",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "5faeab580addd8f1",
"type": "ui_tab",
"name": "Crash_test",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Ah right - actually it is the topic being set to msg.payload.mitarbeiter
- and then not existing on the input msg that is causing this...
What are the steps to reproduce?
msg.options
.Please note this also happens when passing an "integer" when a string is imposed or vice-versa.
What happens?
The whole Nodered instance is crashing.
here's the log:
The whole instance is crashing
What do you expect to happen?
Errors should always be caught and an error message should be passed to the debugger! A library should not crash a whole Nodered instance, whatever the bug.
Please tell us about your environment: