Hello everyone. My first time using Masstransit over RabbitMQ on an
core app (microservices/ddd pattern).
In the infrastructure layer, i make a connection using IRequestClient to another microservice which is a listner/consumer of a message.
Aftert the consumer talks to the db and returns to the consume method, await context.RespondAsync(mappedAccounts) throws an exception, exception below:
MassTransit.Messages Warning: 0 : 'dotnet.exe' (CoreCLR: clrhost): Loaded 'xxxxxxxx\System.Diagnostics.StackTrace.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
S-FAULT rabbitmq://localhost/bus-BABAFEMI-PC-dotnet-k9jyyyykgiqncwopbdmbbwnjro?durable=false&autodelete=true 57d20000-0a35-5c26-4286-08d610d12e56 System.Collections.Generic.List<phymus.bus.messages.commands.Common.IGetAllMyBankAccountDetailsByUserIdGottenCommand> Messages types must not be System types: System.Collections.Generic.List<phymus.bus.messages.commands.Common.IGetAllMyBankAccountDetailsByUserIdGottenCommand>
Parameter name: T, System.ArgumentException: Messages types must not be System types: System.Collections.Generic.List<phymus.bus.messages.commands.Common.IGetAllMyBankAccountDetailsByUserIdGottenCommand>
Parameter name: T
at MassTransit.Topology.Topologies.SendTopology.GetMessageTopology[T]()
at MassTransit.Topology.Observers.TopologySendPipeSpecificationObserver.MassTransit.SendPipeSpecifications.ISendPipeSpecificationObserver.MessageSpecificationCreated[T](IMessageSendPipeSpecification`1 specification)
at MassTransit.SendPipeSpecifications.SendPipeSpecificationObservable.<>c__DisplayClass0_0`1.<MessageSpecificationCreated>b__0(ISendPipeSpecificationObserver observer)
at GreenPipes.Util.Connectable`1.All(Func`2 callback)
at MassTransit.SendPipeSpecifications.SendPipeSpecificationObservable.MessageSpecificationCreated[T](IMessageSendPipeSpecification`1 specification)
at MassTransit.SendPipeSpecifications.SendPipeSpecification.CreateMessageSpecification[T](Type type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at MassTransit.SendPipeSpecifications.SendPipeSpecification.GetMessageSpecification[T]()
at MassTransit.SendPipeSpecifications.ParentSendPipeSpecificationObserver.MessageSpecificationCreated[T](IMessageSendPipeSpecification`1 specification)
at MassTransit.SendPipeSpecifications.SendPipeSpecificationObservable.<>c__DisplayClass0_0`1.<MessageSpecificationCreated>b__0(ISendPipeSpecificationObserver observer)
at GreenPipes.Util.Connectable`1.All(Func`2 callback)
at MassTransit.SendPipeSpecifications.SendPipeSpecificationObservable.MessageSpecificationCreated[T](IMessageSendPipeSpecification`1 specification)
at MassTransit.SendPipeSpecifications.SendPipeSpecification.CreateMessageSpecification[T](Type type)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at MassTransit.SendPipeSpecifications.SendPipeSpecification.GetMessageSpecification[T]()
at MassTransit.Pipeline.Pipes.SendPipe.<GetPipe>b__10_0[T](Type x)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at MassTransit.Pipeline.Pipes.SendPipe.MassTransit.Pipeline.ISendPipe.Send[T](SendContext`1 context)
at MassTransit.Transports.SendEndpoint.EndpointSendContextPipe`1.<Send>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at MassTransit.RabbitMqTransport.Transport.RabbitMqSendTransport.<>c__DisplayClass6_0`1.<<MassTransit-Transports-ISendTransport-Send>b__1>d.MoveNext()
Exception thrown: 'System.ArgumentException' in System.Private.CoreLib.dll
Please what causes this exception. Googled all week long