-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException when trying to sub with streaming subscriptions #1412
Comments
Diving some more into it. Adding a simple:
Lets me receive events correctly in the delegate. Also the |
@Aimless321 @WhitWaldo I too have similar observation , I am surprised if SubscribeAsync will be a blocking call, I am looking at SubscribeAsync as an observer who will get triggered as and when events occur on the broker, is this what it is designed for? However, I have wrapped it in a separate thread to achieve intended behavior something like this:
The next problem is on the subscription, where on my handler the Data property has a empty byte array, am I missing something here? I am using rabbitmq as the broker on the bus I can see that data I publish
However I do not get the data on the handler |
It's not intended to be blocking. I'm hoping to get a PR completed later this afternoon that remedies the issues listed above. |
Can you also check the Data property initialization as this is needed by us to cascade the message to next sub-system after transforming it, if you can tell if this can be done, it will help us making some decisions Thanks in advance Whit |
I've got a PR pending review that'll fix the reported issues above. @tommorvolloriddle Could you either get into more detail about what you're referring to here or consider opening a separate issue for it? |
Thanks for looking into @WhitWaldo! ❤️
I think what he meant was that the Data propery on the I tested locally with:
|
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:
The text was updated successfully, but these errors were encountered: