Comments (16)
Interesting. I have seen this behavior but I don't remember exactly what the issue was.
Can you try running the site locally in debug and put break points to verify that the website backend successfully establishes the connection to the ehalert event hub and check the data read from the EH? Note that you will need to edit the web.config file with the connection strings for EH, IoT Hub and other.
from connectthedots.
Unfortunately my local machine running windows 7 and websockets introduced on IIS 8 so i can't test it. Is there any other option ?
from connectthedots.
Well, without debug mode, it's harder.
Can you try restarting the Website in the portal?
from connectthedots.
I made the restart and once again i can not see anything, the alerts does not appear
from connectthedots.
How did you validate that the alerts are indeed pushed to ehalerts? If you can see data in there, can you share, to see the format?
from connectthedots.
I connect with eventhub by a console application and i receive the messages as you can see in this link https://drive.google.com/open?id=0B9af0-7oqATQakZwblktbldSdnM
from connectthedots.
I share in the previous post in what way i receive the data. Can you please give me a piece of help on how can i see the alerts?
from connectthedots.
the format definitively seems ok.
Let's try the following:
Create a new consumer group for the alerts event hub in the event hub blade in the Azure portal
Go to the website blade in the portal, and open "Application Settings", and change the Azure.ServiceBus.EventHub.ConsumerGroup setting to the new consumer group name
Restart the website from the portal
from connectthedots.
I made the changes you mentioned above and did a test again but it does not work. Anything else that i can do?
from connectthedots.
I will try to reproduce on my side if I can today or on Monday.
One more thing: can you try redeploying a new instance of the whole project from scratch. Try not connecting any tool to the EH before testing the actual website displays the alerts.
from connectthedots.
But without being able to debug the site locally it's really hard to determine what is going wrong
from connectthedots.
After debugging the application locally i notice that if you give a "wrong" guid, the site try to send the message back to the device and fail and as a result the synchronization with the event hub close. Thank you
from connectthedots.
Ok, I need to make it a bit more robust, but are you unblocked? Can we close this issue?
from connectthedots.
Yes we can close it! Thank you much for your help
from connectthedots.
I am also noticing the same behavior described by @vntampasi when deploying from the ARM template:
Able to workaround by adding try / catch around:
IoTHubHelper.SendMessage(messagePayload["guid"].ToString(), alertMessage);
in WebSocketEventProcessor.cs
Attempting to message a device that has not implemented a mechanism for message receipt from the IoT Hub appears to be the reason for failure.
from connectthedots.
Thanks @toolboc and good catch!
I just merged the fix and republished binaires for the website so that ARM deployment uses latest bits.
If you don't mind testing the deployment on your side, that'd be helpful
thanks
from connectthedots.
Related Issues (20)
- question - Windows Iot core gateway? HOT 1
- Data not showing with Dekstop sample HOT 4
- Using the "Deploy to Azure" button never finishes, it is spinning for hours on the last step. HOT 1
- ESP8266 NodeMCU board, need assistance! HOT 6
- nodemcu ans azure event hub HOT 2
- Add feature to receive specific device data based on website choice HOT 1
- Executing ConnectTheDots HOT 14
- Enable IoTHub Management - Access still in User Mode HOT 3
- PowerBi HOT 1
- PB_setup.md walkthrough does not match PowerBi HOT 2
- AzurePrep Exception
- suggestion - video walkthrough
- Deployment Fails HOT 2
- Issue with gateway service HOT 3
- Setting up source control deployment step takes a long time HOT 1
- Webapp Not showing the Add / Delete Device Management buttons HOT 3
- Deployment error using the ARM template HOT 3
- 'AzureIoTHubClient' does not name a type HOT 3
- Namespace sb://xxxxxxxx.azure-devices.net:80/ does not exist. while testing IoT Hub input in Stream Analytics Job
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectthedots.