RawRabbit: Failure Recovery Issue with PublishAsync

When using PublishAsync and the broker goes down, I get System.Exception:

Unable to retreive channel. All existing channels are closed and none of them are recoverable.
   at RawRabbit.Channel.ChannelFactory.EnsureRequestsAreHandled()
   at RawRabbit.Channel.ChannelFactory.GetChannelAsync()
   at RawRabbit.Operations.Publisher`1.PublishAsync[TMessage](TMessage message, Guid globalMessageId, PublishConfiguration config)
   at RawRabbit.Common.BaseBusClient`1.PublishAsync[T](T message, Guid globalMessageId, Action`1 configuration)
   at MyNamespace.MyProducer.Send(Object state)

This is fine, and I can handle retries myself, but it would be nice if something less generic than System.Exception was thrown.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (11 by maintainers)

Commits related to this issue

Most upvoted comments

I’ll give this a try tonight and let you know the results!