eShop
eShop copied to clipboard
[WebToolsE2E][Aspire] After running the eshop.web solution, some rabbitMQ error logs appeared in the structured logs: "Unexpected connection closure: AMQP close-reason."
INSTALL STEPS
- Clean machine: Win11 x64 23h2 ENU
- Install VS 17.9 P1 from build [34309.102.d17.9]
- Install latest 8.0 SDK: 8.0.100
- Apply NuGet Feeds
- Install Docker Desktop
REPRO STEPS
- In the VS, clone the eShop repository and open eShop.Web.slnf
- F5 / Ctrl-F5
- There are some rabbitMQ error logs 'Unexpected connection closure: AMQP close-reason' in Structured Logs
ACTUAL
Unexpected connection closure: AMQP close-reason, initiated by Library, code=0, text='End of stream', classId=0, methodId=0, cause=System.IO.EndOfStreamException: Reached the end of the stream. Possible authentication failure.
at RabbitMQ.Client.Impl.InboundFrame.ReadFrom(Stream reader, Byte[] frameHeaderBuffer, ArrayPool`1 pool, UInt32 maxMessageSize)
at RabbitMQ.Client.Impl.SocketFrameHandler.ReadFrame()
at RabbitMQ.Client.Framing.Impl.Connection.MainLoopIteration()
at RabbitMQ.Client.Framing.Impl.Connection.MainLoop()
EXPECTED There are no errors in Structured Logs.
This is the same issue that @karolz-ms discusses here: https://github.com/dotnet/eShop/issues/42#issuecomment-1797016309. The proxy allows the connection, and then closes it. The client library (rightfully) logs this as an error because it doesn't expect the connection to be closed right after it is opened.