Closed amit12cool closed 3 years ago
@amit12cool Are you connecting to an Event Hub via a connection string? I noticed iot
in your event hub name: are you reading events from an IoT Hub?
Yes, we connect via the Event hub connection string. Below is the code for initialization of consumer client:-
consumerClient = new EventHubConsumerClient(
consumerGroup,
connectionString,
name,
checkpointStore
);
yes, we read twin change events from iot hub using message routing to our Event hub. Also, we publish our own business data on the same Event hub.
Thanks for the info! I should have asked if you see this issue continuously or if it just happened once. If continuously, I wanted to check if you were using the IoT Hub connection string, or the event hubs-compatible IoT Hub connection string.
If it only happened once then it is likely due to a transient network issue and the SDK should automatically recover.
It seems the sdk automatically recovered as we saw this error once only. I will close this issue now.
Describe the bug Our microservice is listening on Event hub that has 32 partitions and a checkpoint store allocated. We recently experienced a error log as below:- ``"{\"level\":\"error\", \"time\":\"2021-06-10T01:17:54.268Z\",\"context\":\"EventHubService\",\"msg\":\"Error in listening on eventHub: iot-prd01-evh and partitionId : Error: Failed to connect}\"}\n",```
Our processError method looks like this:-
Not sure, the exact cause of this error. Can this error be ignored or not from the application side?
To Reproduce Steps to reproduce the behavior:
Expected behavior No error should be received
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.