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

Sample project throws exception "NServiceBus.Router.UnforwardableMessageException" #18

Open
robj-applied opened this issue Jul 10, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@robj-applied
Copy link

commented Jul 10, 2019

Hi, been trying to setup mixed transports using this project. My Endpoint/Routing instances are

  • RabbitMq (net core 2.2 - publishes events)
  • Router (Rabbit incoming, MSMQ outgoing) (net 472)
  • MSMQ (net 472, subscribes to and handles events)

When I run them all I get the exception:

Interface Moving poison message to the error queue NServiceBus.Router.UnforwardableMessageException: No route for destination DirectEvents.WebApp

(Where DirectEvents.WebApp is the RabbitMQ Endpoint)

To see where I was going wrong I downloaded and ran the sample solution from here - https://docs.particular.net/samples/router/mixed-transports/

And when I run the server/router/client here I run into basically the same issue:

Interface Moving poison message to the error queue NServiceBus.Router.UnforwardableMessageException: No route for destination Samples.Router.MixedTransports.Server

I'm using:

  • NServiceBus 7.1.10
  • NServiceBus.Persistence.Sql 4.5.1
  • NServiceBus.RabbitMq 5.1.2
  • NServiceBus.Router 3.5.0
  • NServiceBus.Router.Connector 3.5.0
  • NServiceBus.Transport.Msmq 1.0.1

Happy to post a sample solution if that would help - but maybe the sample project download on the Particular page might be enough as they produce the same error?

If it helps, I can send commands from the Rabbit endpoint, through the router to MSMQ endpoint absolutely fine. Just the event pub/sub is not working, as with the sample project.

Thanks in advance.

@sdargaud

This comment has been minimized.

Copy link

commented Jul 11, 2019

Hi,
I ran into the same issue using the sample named "sql-switch" if that matters.

@robj-applied

This comment has been minimized.

Copy link
Author

commented Jul 12, 2019

I believe I've found the issue:

staticRouting.AddForwardRoute("RabbitMQ", "MSMQ");

Should be:

staticRouting.AddForwardRoute("RabbitMQ", "MSMQ");
staticRouting.AddForwardRoute("MSMQ", "RabbitMQ");

Everything seems to work now. Presumably it couldn't find a way of letting the Rabbit service know that there was a subscription because there was no route through from MSMQ to Rabbit.

It'd be helpful if somebody could clarify if this is indeed the "fix".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.