Git Product home page Git Product logo

Comments (16)

olivierbloch avatar olivierbloch commented on August 30, 2024

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.

vntampasi avatar vntampasi commented on August 30, 2024

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

Well, without debug mode, it's harder.
Can you try restarting the Website in the portal?

from connectthedots.

vntampasi avatar vntampasi commented on August 30, 2024

I made the restart and once again i can not see anything, the alerts does not appear

from connectthedots.

olivierbloch avatar olivierbloch commented on August 30, 2024

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.

vntampasi avatar vntampasi commented on August 30, 2024

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.

vntampasi avatar vntampasi commented on August 30, 2024

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

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.

vntampasi avatar vntampasi commented on August 30, 2024

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

But without being able to debug the site locally it's really hard to determine what is going wrong

from connectthedots.

vntampasi avatar vntampasi commented on August 30, 2024

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

Ok, I need to make it a bit more robust, but are you unblocked? Can we close this issue?

from connectthedots.

vntampasi avatar vntampasi commented on August 30, 2024

Yes we can close it! Thank you much for your help

from connectthedots.

toolboc avatar toolboc commented on August 30, 2024

I am also noticing the same behavior described by @vntampasi when deploying from the ARM template:

image

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.

olivierbloch avatar olivierbloch commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.