Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error getting response stream (ReadDone2): ReceiveFailure

$
0
0

Hi,

My Xamarin.Android app uses HTTPClient from Nuget in a PCL. It makes 3 web calls, the first registers some entered details, the second logs on returning a cookie, the third gets some data using the cookie.

This was working fine in Xamarin.Android version 4.10 but since upgrading to 4.12 I am getting the error "Error getting response stream (readdone2) ReceiveFailure" in the third call.

However if I introduce a delay of 5 seconds before making the third call it works fine (but 2 seconds is too short).

I use using() when instantiating HttpClient and Dispose() of the HttpResponseMessage returned from GetAsync().

Can anyone suggest what the problem is? Is this a bug introduced by Mono?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>