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
Source: System.Private.CoreLib
Type: System.IO.IOException
Message:Theread operation failed,see inner exception.
Stack trace: 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.CurlResponseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Http.DelegatingStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at TestClient.Program.Main(String[] args)in C:\TestClient\Program.cs:line 68
Source: System.Private.CoreLib
Type: System.ObjectDisposedException
Message: Cannot access a closed Stream.
Stack trace: at System.IO.__Error.StreamIsClosed()
at System.IO.MemoryStream.get_Length()
at System.Net.Http.MultipartContent.ContentReadStream.set_Position(Int64 value)
at System.Net.Http.CurlHandler.EasyRequest.Cleanup()
at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)
Some times i have other error
Source: System.Private.CoreLib
Type: System.IO.IOException
Message:Theread operation failed,see inner exception.
Stack trace: 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.CurlResponseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.Http.DelegatingStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.Stream.CopyTo(Stream destination, Int32 bufferSize)
at TestClient.Program.Main(String[] args)in C:\Users\khamzatsalikhov\Source\Workspaces\MicroCollection\SmartRest\TestClient\Program.cs:line 68
Source: System.Private.CoreLib
Type: System.ObjectDisposedException
Message: Cannot access a closed Stream.
Stack trace: 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.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at System.Net.Http.MultipartContent.ContentReadStream.d__15.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 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)
No problem occurs if i do not use "MultipartFormDataContent" or put "HttpCompletionOption.ResponseContentRead". But for me it's not possible because I download very large files by post with "MultipartFormDataContent".
Best regards
The text was updated successfully, but these errors were encountered:
@pelhu, I suspect this is the same as https://github.com/dotnet/corefx/issues/9006. I don't have access to the link in your repro (I get a 404), but do you know if the server starts sending back a response before it fully receives the request? I'm guessing it does.
@stephentoub The callstack seems very similar to dotnet/corefx#17010, could that also be related to #17467
It's possible. If you're able to repro it with that example, you could try changing the server to fully consume the request before outputting the response and see if that causes the failure to go away. If it does, it's almost certainly the same issue.
Hi,
When i run on Ubuntu 14.04.5 LTS
I have error
Some times i have other error
No problem occurs if i do not use "MultipartFormDataContent" or put "HttpCompletionOption.ResponseContentRead". But for me it's not possible because I download very large files by post with "MultipartFormDataContent".
Best regards
The text was updated successfully, but these errors were encountered: