Open abdul-hafeel opened 2 months ago
@abdul-hafeel My guess would be it's one of two things:
The Kafka container isn't getting its ports mapped in the way that Dapr expects. I'd check to see whether you can, independent of Dapr, connect and publish to the running Kafka container. That would help you understand whether it's a Dapr or Docker issue.
--log-level debug
?
I'm new to Dapr as well as Kafka. Currently, for my .NET 8 desktop app, I want to implement Dapr with Kafka(KRaft), for that I'm working on POC, there I'm facing issues that:
'Dapr.DaprException: 'Publish operation failed: the Dapr endpoint indicated a failure'. ({"Status(StatusCode="Unavailable", Detail="Error connecting to subchannel.", DebugException="System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.")"}).
docker-compose.yaml for Kafka image in Docker
`version: "3.8"
services: kafka: image: docker.io/bitnami/kafka:3.7 container_name: kafka ports:
KRaft settings
Listeners
Additional settings
volumes: kafka_data: driver: local`
Program.cs
=================================================
In the above line, it is accepted as a string, not a channel.
Kafka pubsub yaml (Dapr configuration)
`apiVersion: dapr.io/v1alpha1 kind: Component metadata: name: kafka-pubsub namespace: default spec: type: pubsub.kafka version: v1 metadata:
Here I have attached tried code and configuration(s). I have turned off the firewall as well. Even though I am facing the same issue. Kindly help me out what I am missing here. Thanks in advance.