lcarli / NodeRedIoTHub

Fork from origin plus changes
Apache License 2.0
14 stars 24 forks source link

TypeError: node.log is not a function (Node-RED in Azure) #16

Open topese opened 6 years ago

topese commented 6 years ago

I am using the IBM Virtual Device nodes to store data and update device data. In the flow I also use the IoTHub node to send device data on to an Azure IoT Hub.

The flow works very well when running it locally on my PC. When we run the exact same flow in Azure, the error/exception "TypeError: node.log is not a function" crashes the IoTHub node over and over again. We are trying to have an "always on" fleet of devices running, but that proves to be hard when the node seem to crash frequently.

Please advise.

/Tobias

topese commented 6 years ago

Any news on this?

tedhuang commented 6 years ago

azureiothub.js - Line 112

client.close(printResultFor('close'));

needs to be

client.close(printResultFor(node,'close'));