Open Aimless321 opened 3 days ago
Diving some more into it.
It seems like this code is receiving some kind of initial response where the response.EventMessage
is null.
Adding a simple:
if (response.EventMessage is null)
{
continue;
}
Lets me receive events correctly in the delegate.
Also the DaprPublishSubscribeClient.SubscribeAsync
method is blocking, not sure if that is intended. It only returns after the subscription has been closed.
Expected Behavior
Receive messages in the registered handler when using streaming subscriptions.
Actual Behavior
Running version 1.14 of the Dapr runtime and using the master branch of the .NET SDK, i receive a NullRefrenceException when trying to subscribe to a topic using the new Messaging Client.
The call to
messagingClient.SubscribeAsync
never returns, and gives me an error which i traced back to a NullReferenceException onresponse.EventMessage
inPublishSubscribeReceiver.cs
line 252.In WireShark i can see the GRPC call to the sidecar, and i also receive logging from the sidecar:
Even in Redis i can see a subscriber group, which says the messages have been delivered.
Steps to Reproduce the Problem
pubsub.yaml:
Release Note
RELEASE NOTE: