Skip to content
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

Subscribe does not recreate the grpc connection #690

Open
famarting opened this issue Feb 17, 2025 · 1 comment
Open

Subscribe does not recreate the grpc connection #690

famarting opened this issue Feb 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@famarting
Copy link
Contributor

Describe the bug

This may not be considered a bug but a feature request... anyway, the streaming subscription functions don't recreate the grpc connection after unexpected client disconnections, resulting in the subscription to stop working while the user application has no way of detecting it or be notified.

The go sdk currently only prints this log

Error receiving messages from subscription pubsub=pubsub topic=footopic, closing subscription: rpc error: code = Unknown desc = error handling streaming subscription: api server closed

To Reproduce

  • Run a sample application using SubscribeWithHandler or Subscribe
  • verify the subscription receives messages
  • shut down the dapr sidecar (easily doable if running dapr locally and running the app and the sidecar separately)
  • notice the log message on the application and that it no longer can receive pubsub messages

Expected behavior

Similar to the grpc stream used in the Workflows API, I would expect the grpc connection for streaming subscriptions to be resilient and to be infinitely recreated until the user stops the subscription

@famarting famarting added the bug Something isn't working label Feb 17, 2025
@JoshVanL
Copy link
Contributor

Sounds good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants