Bug 47700 - Error getting response stream(ReadDone2): Receive Failure" when retry credential three times
Summary: Error getting response stream(ReadDone2): Receive Failure" when retry credent...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Net.Http ()
Version: 4.6.0 (C8)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2016-11-23 10:15 UTC by Matt Ward
Modified: 2017-05-15 13:16 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 47700 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Matt Ward 2016-11-23 10:15:12 UTC
Reported on NuGet - https://github.com/NuGet/Home/issues/3762

Tested Mono (mono-4.8.0-branch/f5fbc32 Mon Nov 14 14:10:00 EST 2016) on Mac.

To repro:

1) Clone the repo: https://github.com/zhili1208/MockServerOnMono
2) Edit MockServer/Program.cs and change Main so CredentialRetryIssue.ReproIssue is uncommented and SecrueStringIssue is commented out.

		public static void Main(string[] args)

3) Compile the solution.
4) Open a terminal in the MockServer/bin/Debug directory and run the MockServer: mono MockServer.exe

Expected result:

No output from on command line. (Windows shows no console output).

Actual result:

Exception logged:

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request ---> System.Net.WebException: Error getting response stream (ReadDone2): ReceiveFailure ---> System.Exception:   at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Net.WebConnection.ReadDone (System.IAsyncResult result) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Net.Sockets.SocketAsyncResult+<Complete>c__AnonStorey0.<>m__0 (System.Object _) [0x00000] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <829ce140006e4cad9124766ee7f51179>:0 
  at System.Net.WebConnection.HandleError (System.Net.WebExceptionStatus st, System.Exception e, System.String where) [0x00044] in <54b353f17dee4a2c97c9f919bcfe90f1>:0 

Full callstack: https://gist.github.com/mrward/a1dbb390d0ab60cfac607123303ad76a
Comment 1 marius 2017-05-15 13:16:43 UTC
Issue also exists with 4.8.1