i have a web api applicaiton where we can call by a device under android 6.0
All works fine, but last week we have a problem and i don't know why ...
Here is it the code of the web api call on device android :
static async Task DownloadDatas(string url)
string jsonDatas = string.Empty;
using (var client = new HttpClient())
using (var r = await client.GetAsync(new Uri(url)))
jsonDatas = await r.Content.ReadAsStringAsync();
catch (Exception ex)
return jsonDatas; }
If i call the url with a browse i can download the json string but every time with the android device i have this error
Unable to read data from the transport connection:Connection reset by peer
Any idea, suggestion or so on would be appreciate ...
actually it's not possible to reproduce the problem and of course it's difficult to investigate ...