You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I've been trying to use Aspire (Preview 3) to implement my architecture, using RabbitMq via Wolverine to get things communicating appropriately, I'm aware of the open #635 that seems to be working out how to use the Aspire client services, however in my case I'm purely using host to provide the necessary RabbitMq. Within the Aspire launched applications (web-server, API, consumers etc) I want to use pure RabbitMq via Wolverine, e.g. not the IConnection etc that the Aspire client libraries add. However, I'm having startup issues with the client crashing immediately.
Starting of client crashes with the following exception:
024-02-23T17:58:52.4817620 fail: Wolverine.Runtime.WolverineRuntime[0]
Failed to start the Wolverine messaging
RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable
---> System.IO.IOException: connection.start was never received, likely due to a network timeout
at RabbitMQ.Client.Framing.Impl.Connection.StartAndTune()
at RabbitMQ.Client.Framing.Impl.Connection.Open(Boolean insist)
at RabbitMQ.Client.Framing.Impl.Connection..ctor(IConnectionFactory factory, Boolean insist, IFrameHandler frameHandler, String clientProvidedName)
at RabbitMQ.Client.Framing.Impl.Connection..ctor(IConnectionFactory factory, Boolean insist, IFrameHandler frameHandler, ArrayPool`1 memoryPool, String clientProvidedName)
at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(IFrameHandler fh)
at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(IEndpointResolver endp
oints)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
--- End of inner exception stack trace ---
at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
at RabbitMQ.Client.ConnectionFactory.CreateConnection(String clientProvidedName)
at RabbitMQ.Client.ConnectionFactory.CreateConnection()
at Wolverine.RabbitMQ.Internal.RabbitMqTransport.BuildConnection()
at Wolverine.RabbitMQ.Internal.RabbitMqTransport.ConnectAsync(IWolverineRuntime runtime)
at Wolverine.Transports.BrokerTransport`1.InitializeAsync(IWolverineRuntime runtime)
at Wolverine.Runtime.WolverineRuntime.startMessagingTransportsAsync()
at Wolverine.Runtime.WolverineRuntime.StartAsync(CancellationToken cancellationToken)
This can be overcome by something hacky such as the following at the end of the program.cs for a minimal API :
// Map routes
Console.WriteLine("Waiting for 5 seconds before starting the application");await Task.Delay(5000);
Console.WriteLine("Starting the application after 5 seconds to allow RabbitMQ to start");
app.Run();}
Expected behaviour
Initialisation code waits for the RabbitMq container to start. (configurable timeout or resilience pattern?).
The text was updated successfully, but these errors were encountered:
Describe the bug
I've been trying to use Aspire (Preview 3) to implement my architecture, using RabbitMq via Wolverine to get things communicating appropriately, I'm aware of the open #635 that seems to be working out how to use the Aspire client services, however in my case I'm purely using host to provide the necessary RabbitMq. Within the Aspire launched applications (web-server, API, consumers etc) I want to use pure RabbitMq via Wolverine, e.g. not the
IConnection
etc that the Aspire client libraries add. However, I'm having startup issues with the client crashing immediately.To Reproduce
Steps to reproduce the behaviour:
This can be overcome by something hacky such as the following at the end of the program.cs for a minimal API :
Expected behaviour
Initialisation code waits for the RabbitMq container to start. (configurable timeout or resilience pattern?).
The text was updated successfully, but these errors were encountered: