Closed stewart2020 closed 4 years ago
@stewart2020 Thanks for the feedback! We are currently investigating and will update you shortly.
Looks like you are also facing the same issue as https://github.com/MicrosoftDocs/azure-docs/issues/52271.
I am able to repro the issue. Assigning the issue to the content author to evaluate and update as appropriate.
@robinsh Please look into this issue as earliest. When running the sample getting the below screen. Are there known issues/code changes done recently?
on chart-device-data.js line 144 there is a "return;" comment and refresh, data will display.
@Glaubscher Thanks for sharing the resolution. @stewart2020 Can you check this and let us know if that helps?
Yes, working, thanks very much for your help. Much appreciated.
@AshokPeddakotla-MSFT I do have exactly the same issue as @stewart2020 , I just commented the return on chart-device-data.js line 144 however I'm still getting the same error.
Check your consumer group, seems like its not accessible or used by something else. after starting this is the expected screen
@Glaubscher Sorry, my bad. I got confused between the consumer group and the resources groups it works just fine now. btw is there any difference between EventHubClient.createFromIotHubConnectionString and EventHubConsumerClient when it comes to retrieve , read the data that comes from the device ? I tried both and it seems to me the outcome is still the same. I really do appreciate your help.
Hi,
Here is a good explanation of the diff connection strings, its a older article but has good info. https://devblogs.microsoft.com/iotdev/understand-different-connection-strings-in-azure-iot-hub/
very glad you got it working :-)
I tried commenting 'return' in chart-device-data.js as suggested in the issue #52495. It worked for the localhost but still not able to visualize the data from azure web app. Please comment to the earliest. Thank you
did you remember to set the 2 environmental variables under application settings ..
once set, leave the site open and initiate communication and it should start populating.
Yes I have set the 2 Environmental variables iothubconnectionstring and Eventhubconsumergroup using the command provided in the document.
I checked the logstream to find out the error and there it was displayed as invalid iothubconnectionstring even though I gave service connection string primary key.
Should the web app and iothub of same tier? As I am using free tier for iothub and b1 tier for app service
or should app service and iot hub from the same server location. While creating app service it was kept as west Europe and While creating iot hub it was kept as central India. will there be an issue with that ?
All, as per this issue, https://github.com/MicrosoftDocs/azure-docs/issues/53901 doc has been updated. Please follow the steps accordingly update if you still face any problems.
Since original issue reported is solved, We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
@AshokPeddakotla-MSFT Hi, In my set up i have RasPi4 which i hav set up as hub, an Iot Device is created. Raspberry Pi is running simulateddevice.py program and reading temperature and humidity data from Sense hat emulator. I followd all the step as mentioned in the link tutorial https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps the local host does not show any data it appers like below
and i can see only 2 partition ids on command promt window like below
i checked the comments about commenting a return statement in chart-device-data.js even after that there is no difference.
@AshokPeddakotla-MSFT Hi, In my set up i have RasPi4 which i hav set up as hub, an Iot Device is created. Raspberry Pi is running simulateddevice.py program and reading temperature and humidity data from Sense hat emulator. I followd all the step as mentioned in the link tutorial https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-live-data-visualization-in-web-apps the local host does not show any data it appers like below
and i can see only 2 partition ids on command promt window like below
i checked the comments about commenting a return statement in chart-device-data.js even after that there is no difference.
Hi Now the issue is resolved. the only change was commenting return statemenet in chart-device-data.js on line 144 thank you for all the information
Hi, I'm able to receive the sensor data in the web app output terminal but unable to visualize it.
I using a Raspberry Pi for sending data to the IoT Hub, as per the Tutorial https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-raspberry-pi-kit-node-get-started
This seems to be working fine, console indicates messages sent, Azure IoT indicates message received.
I get a graph and no data on the Azure WebApp graph. On my Localhost, I receive the message below after the stage 'npm start'. Device is sending data ok. (Graph shows in browser, but no data displayed)
Successfully created the EventHubConsumerClient from IoT Hub event hub-compatible connection string. The messaging entity 'sb://ihsuprodmlres009dednamespace.servicebus.windows.net/MYIOTDEVICENAME/$management' could not be found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:0d607c1d-c5ba-4b08-a5d7-368b0dfe23a2_G5, SystemTracker:ihsuprodmlres009dednamespace.servicebus.windows.net:MYIOTDEVICENAME/$management, Timestamp:2020-04-15T19:17:22
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.