abreits / node-red-contrib-amqp

Node-RED AMQP input and output nodes
16 stars 18 forks source link

AMQP output node connect error: Cannot read property 'toLowerCase' of undefined #25

Open titouanlh opened 4 years ago

titouanlh commented 4 years ago

Hi I tried to use the amqp node on my node-RED install but I had some troubles. This error happened, I could not connect :

AMQP output node connect error: Cannot read property 'toLowerCase' of undefined

So I edited the amqp.js file and removed this line to make the node work :

osDistroLowerCase = result.dist.toLowerCase(); I'm using Windows 10, node.js v8.16.1 and npm v6.4.1. Is it a bug or something ? I don't know a lot about javascript...

I made it work removing the line and typing "windows" as osDistroLowerCase value but I'm pretty shure that it's not the best way to deal with this issue 😆

Anyway, I hope it can be usefull