Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Nicolas Dorier edited this page Jun 13, 2017 · 9 revisions

Periodic failure exception appears System.IO.IOException: The read operation failed:

If you have exception as the following happening:

System.IO.IOException: The read operation failed, see inner exception. ---> System.ObjectDisposedException: Cannot access a closed Stream.
         at System.IO.__Error.StreamIsClosed()
         at System.IO.MemoryStream.Read(Byte[] buffer, Int32 offset, Int32 count)
         at System.IO.MemoryStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
      --- 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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
         at System.Net.Http.CurlHandler.MultiAgent.TransferDataFromRequestStream(IntPtr buffer, Int32 length, EasyRequest easy)
         at System.Net.Http.CurlHandler.MultiAgent.CurlSendCallback(IntPtr buffer, UInt64 size, UInt64 nitems, IntPtr context)

This exception seems to come from a bug in .NET Core when the system is running out of RAM on Linux. (See issue) Please free some resources, and run again.

Clone this wiki locally