I have this node installed:
node-red-contrib-queue-gate
I am seeing errors in my flows - I think at boot - and when raised with the writer they say it is a problem outside the node's scope.
The error message you've been getting is produced by the JavaScript interpreter when it doesn't know what to do. The older versions of
q-gate
would throw an error for certain inputs that are now ignored. You probably should check to see that your flow behaves properly, since the node may be ignoring instead of acting on those inputs.
This is the error I am seeing:
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"7bc998b7.b8c538","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"7bc998b7.b8c538","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"7bc998b7.b8c538","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"7bc998b7.b8c538","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
{"message":"TypeError: msg.payload.toLowerCase is not a function","source":{"id":"93d25089.579ef8","type":"q-gate","name":"qgate","count":1},"stack":"TypeError: msg.payload.toLowerCase is not a function\n at QueueGateNode._inputCallback (/home/pi/.node-red/node_modules/node-red-contrib-queue-gate/q-gate.js:79:37)\n at hooks.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:203:26)\n at Object.trigger (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/hooks.js:113:9)\n at QueueGateNode.Node._emitInput (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:195:11)\n at QueueGateNode.Node.emit (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:179:25)\n at QueueGateNode.Node.receive (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:476:10)\n at Immediate._onImmediate (/usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/flows/Flow.js:657:52)\n at runCallback (timers.js:705:18)\n at tryOnImmediate (timers.js:676:5)\n at processImmediate (timers.js:658:5)"}
All Greek to me.
But I am asking if someone can help me understand what is going on and why.