Hi all. Got a stumper here. I have been running my flows on a server for some time and using node red as a data collection tool. This is running on an older version of Node-Red, but i figured everything would come over ok in the newest release.
I am getting an error when trying to use the dropdown node. Node red will crash when i try to select one of the two options i am passing (from a change node). The options are ( from a select statement)
SELECT id FROM Grows : msg.payload : array[2]
array[2]
0: object
id: 55
1: object
id: 1
1 and 55 are displayed, but as soon as I select them node red crashes with the following:
18 Jan 23:29:32 - [red] Uncaught Exception:
18 Jan 23:29:32 - [error] TypeError: Cannot read property 'indexOf' of undefined
at Object.convertBack (/home/pi/.node-red/node_modules/node-red-dashboard/nodes/ui_dropdown.js:145:84)
at EventEmitter.handler (/home/pi/.node-red/node_modules/node-red-dashboard/ui.js:280:29)
at EventEmitter.emit (events.js:412:35)
at Socket.emit (events.js:400:28)
at Socket.emitUntyped (/home/pi/.node-red/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/.node-red/node_modules/socket.io/dist/socket.js:466:39
at processTicksAndRejections (internal/process/task_queues.js:77:11)
nodered.service: Main process exited, code=exited, status=1/FAILURE
Yep. This is the same issue. Thanks for linking this! I'll post my flow there as well. Wish I was better at JS, i'd love to help fix this. Node-Red has been really useful to me.
usually fairly short - but someone else mentioned another bug in dropdown and hasn't posted a way to repeat it so I'm waiting on that in case I can fix both, rather than do two releases.
If you want you can always install direct from git using
For some reason this is hanging when I try to install this (This is how i orignally installed the package): pi@ABDC01 : ~/.node-red $ npm i node-red/node-red-dashboard
[..................] | rollbackFailedOptional: verb npm-session cbb1a380470aeb6a
It just hangs at the above line.
I uninstalled the package before doing this to see if that was the root cause, it was not.
Any ideas? This is on a Pi Zero so i get why its somewhat slow, but it should complete in at least 5 minutes.
On a Zero it might take a very long time when installing direct from git. I don't think it has been determined why that is the case. Give it a few hours before giving up. If you run top in another terminal you can see that it is still doing things.