【发布时间】:2018-06-05 10:54:50
【问题描述】:
我正在学习 MassTransit,所以我下载了他们拥有的 sample,但它似乎对我不起作用,当我尝试启动服务时出现以下错误:
An exception occurred
MassTransit.RabbitMqTransport.RabbitMqConnectionException: Connect failed: igor@localhost:5672/test ---> RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text="NOT_ALLOWED - vhost test not found", classId=10, methodId=40, cause=
at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout)
当我尝试使用其他使用旧版本 MassTransit 的示例时,它们运行良好。
【问题讨论】:
-
这是我的代码,它使用没有虚拟主机的 vanilla RMQ github.com/alexeyzimarev/MTSamples.RequestResponsePerf/blob/…
-
感谢您的回复 Alexey。正如我所说,我现在正在学习这一点,所以我不完全确定虚拟主机在这种情况下意味着什么。另外,由于这是公共交通提供的示例,我希望代码能够正常工作(如果需要为我创建虚拟主机?)
标签: rabbitmq masstransit