Azure-Samples / web-apps-node-iot-hub-data-visualization

web application for visualization data from IoT Hub
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps
MIT License
83 stars 432 forks source link

Empty Graph #15

Closed abramjstamper closed 6 years ago

abramjstamper commented 6 years ago

I followed both the readme and the documentation from Microsoft on this tutorial. I have it working perfectly when running on my local machine. My device sends data through the IoT Hub, and express puts the data on the graph in the browser. However, when I move from the local machine into the cloud, I get the webpage to load, but no data is ever displayed in the graph. I can confirm in the dev tools console that the browser's web socket is connected to Azure. There's no additional debugging information provided as to why I'm not receiving data in my browser. I wanted to make sure that my credential were okay (even though it worked locally), so I sshed into Azure Web App and navigated to the public root, duplicated the server, and put it on another port. I could see it receiving the data from the IoT Hub via console messages.

I'm not really sure what's broke since it seems to work both IoT Hub > Express & Express > Browser. Any guidance would be appreciated as the tutorial listed below is a bit out of date with the current Azure app services interface.

Tutorial Followed

abramjstamper commented 6 years ago

Got it resolved. The issue is that I had a linux VM set up, which will not work. You must use Windows, and set an application setting for WEBSITE_NODE_DEFAULT_VERSION to something the server supports (eg: 8.9.4)