Search code examples
c#rabbitmqrabbitmq-exchange

RabbitMQ.Client.Exceptions.OperationInterruptedException


I'm working on my student project related to Notification Brokers. As a sample our teacher provided us with the following repository: https://github.com/DeveloperStories/RabbitMQ.

I selected Publisher project inside the RabbitMQ solution and ran it without changing any bit of code.

Unfortunately, I received the following error:

enter image description here

As I investigate further, all of projects throw the error at the line using (var channel = connection.CreateModel()).

What's interesting, none of my classmates faced any similar issue.

I downloaded the Erlang language. I allowed 5672 and 15672 ports in my Windows firewall (as was requested). The http://localhost:15672/ page works just fine. What can it be?


Solution

  • The issue was related to the newest version of the Erlang language (26.0), which was not supported by RabbitMQ.

    The solution was to install an earlier version instead (25.0 in my case).