question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not receiving data from Azure Event Hub at my consumer

See original GitHub issue

Description

I want to consume messages from Azure Event Hub and then do processing on it but I am not receiving any data from event hub. Also I am not able to find the reason as I am not receiving any kind of error or exception on my debug console. I am able to send data successfully to Azure IOT Hub and data is flowing there but I am not receiving at my consumer end. This is my configuration for connection with Azure EventHub :

` public async Task ConsumerAsync() {

        // Stream configuration
        var config = new StreamConfig();
        config.ApplicationId = "testing-acc4";
        config.BootstrapServers = "xxxx";
        config.SecurityProtocol = SecurityProtocol.SaslSsl;
        config.SocketTimeoutMs = 60000;
        config.SessionTimeoutMs = 30000;
        config.SaslMechanism = SaslMechanism.Plain;
        config.SaslUsername = "$ConnectionString";
        config.SaslPassword = "xxxx";
        config.AutoOffsetReset = AutoOffsetReset.Earliest;
        config.BrokerVersionFallback = "1.0.0";

        config.DefaultKeySerDes = new StringSerDes();
        config.DefaultValueSerDes = new DataDto();

        StreamBuilder builder = new StreamBuilder();
        
        IKStream<string, DataDto> str = builder.Stream<string, DataDto>("xxxxx");
        str.Filter((k, v) => CheckFilterCriteria(v)).Print(Printed<string, DataDto>.ToOut());

        Topology t = builder.Build();

        // Create a stream instance with topology and configuration
        KafkaStream stream = new KafkaStream(t, config);

        //Subscribe CTRL +C to quit stream application
        Console.CancelKeyPress += (o, e) =>
        {
            stream.Dispose();
        };

        await stream.StartAsync();

    }`

This is the response I am getting on debug console:

azure1 azure2

This is the response I am getting when I stopped sending data to azure IOT hub:

azure3 Above screenshot tells that connection was established with azure Event Hub but still I was not getting any data or error messages

Can you please guide me on what is the issue and why I am not receiving any data from Event Hub. But when I am doing same stuff with kafka server locally, everything is happening perfectly fine. Kindly give me heads up.

How to reproduce

Checklist

Please provide the following information:

  • A complete (i.e. we can run it), minimal program demonstrating the problem. No need to supply a project file.
  • A code snippet with your topology builder (ex: builder.Stream<string, string>(“topic”).to(“an-another-topic”)😉
  • Streamiz.Kafka.Net nuget version.
  • Apache Kafka version.
  • Client configuration.
  • Operating system.
  • Provide logs (with in debug mode (log4net and StreamConfig.Debug) as necessary in configuration).
  • Critical issue.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Reactions:1
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
LGouelleccommented, Nov 16, 2022

Yes exactly, feel free to add your upvote into the azure event issue. It opened since 2019 … ☹️

So for now, Streamiz is not compatible with Azure Event Hubs, like some kafka connectors I suppose.

I close this issue. If you have any other question, feel free to reopen this one.

Best regards,

1reaction
LGouelleccommented, Nov 15, 2022

@Shikha4599,

I will try to reproduce asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python 3.x - Event Hub Consumer not receiving events
I have a python receiver script which processes the events i.e on blob create an event is triggered and the data is loaded...
Read more >
Troubleshoot connectivity issues - Azure Event Hubs
There are various reasons for client applications not able to connect to an event hub. The connectivity issues that you experience may be ......
Read more >
Azure Event Hub ProcessorClient connection is not ...
Hi Team, I am trying to receive events from Event Hub into my application(Console App - netcoreapp3.1) and I am using EventProcessorClient ...
Read more >
Troubleshoot issues with Azure Event Hubs for Apache Kafka
Apache Kafka troubleshooting guide for Event Hubs ... You may see consumers not getting any records and constantly rebalancing.
Read more >
Send or receive events using .NET - Azure Event Hubs
A quickstart to create a .NET Core application that sends events to Azure Event Hubs and then receive those events by using the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found