confluentinc / confluent-kafka-dotnet

Confluent's Apache Kafka .NET client
https://github.com/confluentinc/confluent-kafka-dotnet/wiki
Apache License 2.0
89 stars 868 forks source link

Issue with ConsumerBuilder on macOS Catalyst (ARM64) in Blazor Hybrid App #2234

Open lasoares opened 5 months ago

lasoares commented 5 months ago

Description

I'm experiencing an issue with the Confluent.Kafka .NET client version 2.4.0 when attempting to use it in a Blazor Hybrid app targeting maccatalyst-arm64. The error occurs on the following line of code:

_consumer = new ConsumerBuilder<Ignore, string>(config).Build(); When running the Blazor Hybrid application on macOS with the target framework net8.0-maccatalyst, I encounter the following error:

Unsupported platform: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 Interestingly, a similar .net console application targeting osx-arm64 works fine without any issues. This suggests a potential compatibility issue with maccatalyst-arm64.

How to reproduce

` var config = new ConsumerConfig { BootstrapServers = "your_kafka_broker_address", GroupId = "your_consumer_group", AutoOffsetReset = AutoOffsetReset.Earliest, EnableAutoCommit = false };

try { _consumer = new ConsumerBuilder<Ignore, string>(config).Build(); } catch (Exception ex) { _logger.LogError(ex.Message); } `

Operating system

MacOs Sonoma 14.5 ARM64

Additional Information

anchitj commented 5 months ago

We currently don't support maccatalyst-arm64 right now.

lasoares commented 5 months ago

@anchitj Is it on roadmap to be supported?

Dardev12 commented 3 months ago

If I understand correctly, there’s no solution at the moment. @anchitj

I’m encountering the same error related to "Unsupported platform: Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:35:15 PDT 2024; root .122.3~3/RELEASE_ARM64_T8101."

However, in my case, I’m integrating the Kafka library into my MAUI .NET application, and the error triggers when I run it on iOS and Android.

Are there any alternative solutions available?

lasoares commented 1 month ago

@Dardev12 Did you found any alternative?