Azure/connectthedots

Data not showing with Dekstop sample

miqbal23 opened this issue · 4 comments

I'm trying to use the Desktop sample in /Devices/DirectlyConnectedDevices/NodeJS /Desktop

When I ran the code, it clearly sent the message

console

but the web didn't show anything. And also, I got similar message like #173

web

Did something wrong happened, or is there a step in deploying process that I missed?

Hi @nobodykid
THe error message at the bottom of the site seems to be indicating that the Websocket connection between the site frontend and backend failed. Make sure you have Websockets enabled in your Website settings in the Azure portal.
Also, you can verify that the data is indeed sent to IoT Hub using the IoTHub-explorer tool as described in this doc

I have enabled the setting based from instruction in Website Publish, and also the connection between IoT Hub and device seems working fine (the message counter in IoT Hub changed)

It seems the problem lies in the website. Because I got the same bug in #246 I had to manually publish the web through Visual Studio. During deployment, I didn't change any settings (the WebSockets option is already ON in Azure App Service). Could there be any steps/settings that I probably missed?

Can you try and publish the site using the debug build instead of release?

I have made some updates to the website and its deployment that should address this issue. I will close the issue, feel free to reopen if the latest changes don't fix it for you.