richardsilveira / masstransit-configurationtoarealworldscenario Goto Github PK
View Code? Open in Web Editor NEWA sample showing how to use and configure correctly MassTransit and Sagas state machine in a real world scenario
A sample showing how to use and configure correctly MassTransit and Sagas state machine in a real world scenario
Implement the solution proposed on MassTransit/MassTransit#558 to check the inner exception that matches the filter policy...
I'm getting this error while doing a POST to OrderController
http://localhost:1234/api/Order
{
"message": "An error has occurred.",
"exceptionMessage": "Connect failed: guest@localhost:5672/pizzaapi",
"exceptionType": "MassTransit.RabbitMqTransport.RabbitMqConnectionException",
"stackTrace": " em MassTransit.RabbitMqTransport.Integration.RabbitMqConnectionCache.SendUsingNewConnection(IPipe1 connectionPipe, ConnectionScope scope, CancellationToken cancellationToken)\r\n em MassTransit.RabbitMqTransport.Integration.RabbitMqConnectionCache.Send(IPipe
1 connectionPipe, CancellationToken cancellationToken)\r\n em MassTransit.RabbitMqTransport.Integration.RabbitMqModelCache.d__10.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em MassTransit.RabbitMqTransport.RabbitMqSendTransport.d__61.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n em PizzaApi.Application.OrderController.<RegiterNew>d__8.MoveNext() na C:\\Dev\\MassTransit-ConfigurationToARealWorldScenario\\PizzaApi\\PizzaApi\\Application\\OrderController.cs:linha 108\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__3
1.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.ApiControllerActionInvoker.d__0.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Controllers.ActionFilterResult.d__2.MoveNext()\r\n--- Fim do rastreamento de pilha do local anterior onde a exceção foi gerada ---\r\n em System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n em System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n em System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()",
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "None of the specified endpoints were reachable",
"exceptionType": "RabbitMQ.Client.Exceptions.BrokerUnreachableException",
"stackTrace": " em RabbitMQ.Client.ConnectionFactory.CreateConnection(IList1 hostnames)\r\n em RabbitMQ.Client.ConnectionFactory.CreateConnection()\r\n em MassTransit.RabbitMqTransport.Integration.RabbitMqConnectionCache.SendUsingNewConnection(IPipe
1 connectionPipe, ConnectionScope scope, CancellationToken cancellationToken)",
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text="NOT_ALLOWED - access to vhost 'pizzaapi' refused for user 'guest'", classId=10, methodId=40, cause=",
"exceptionType": "RabbitMQ.Client.Exceptions.OperationInterruptedException",
"stackTrace": " em RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout)\r\n em RabbitMQ.Client.Impl.ModelBase.ConnectionOpen(String virtualHost, String capabilities, Boolean insist)\r\n em RabbitMQ.Client.Framing.Impl.Connection.Open(Boolean insist)\r\n em RabbitMQ.Client.Framing.Impl.Connection..ctor(IConnectionFactory factory, Boolean insist, IFrameHandler frameHandler)\r\n em RabbitMQ.Client.Framing.Impl.ProtocolBase.CreateConnection(IConnectionFactory factory, Boolean insist, IFrameHandler frameHandler)\r\n em RabbitMQ.Client.ConnectionFactory.CreateConnection(IList`1 hostnames)"
}
}
}
my Rabbitmq server was started successfuly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.