Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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 on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 14647 [details]
Our Client App retrieves documents from SharePoint server. When we hit a document URL that does not exist the Request times out. Besides this we do not have any other issues and it works fine on Windows. This timeout issue has been reproduced using HttpClient, WebRequest, and RestSharp (this internally uses WebRequest) APIs.
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) [0x00046] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System/System.Net/HttpWebRequest.cs:940
at System.Net.HttpWebRequest.GetResponse () [0x0000e] in /private/tmp/source-mono-mac-4.2.0-branch/bockbuild-mono-4.2.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.2.1/mcs/class/System/System.Net/HttpWebRequest.cs:958
at RestSharp.Http.GetRawResponse (System.Net.HttpWebRequest request) [0x00002] in <filename unknown>:0
Version 5.10.1 (build 6)
Installation UUID: 6a7bbb45-a541-440e-81e7-e1bad476a27e
Mono 4.2.1 (explicit/6dd2d0d)
GTK+ 2.24.23 (Raleigh theme)
Package version: 402010102
Apple Developer Tools
Xcode 7.2 (9548)
Xamarin Android Player
Version: 22.214.171.124 (Business Edition)
Release ID: 510010006
Git revision: 0b60eecdb531933734519c13257d16a780274aab
Build date: 2015-12-04 20:28:20-05
Xamarin addins: 9876fd7c9837977178411ec7375b4352c0a0d6af
Build lane: monodevelop-lion-cycle6-baseline
Mac OS X 10.11.2
Darwin Pareshs-Mac-mini.local 15.2.0 Darwin Kernel Version 15.2.0
Fri Nov 13 19:56:56 PST 2015
System.Net.HttpWebRequest and friends are all BCL classes. Moving to the correct product.
Could you help us and provide some way to reproduce the issue?
Please use either client HttpRequest to download a file successfully. Remove the file or change the request Url so it cannot find that file. You should receive a time out. Please let me know if you need more information.
I don't. Trying with simple repro everything works
public static void Main ()
TestDownload ().Wait ();
static async Task TestDownload ()
var c = new HttpClient ();
var stream = await c.GetStreamAsync ("https://github.com/mono/mono/blob/master/acceptance-tests/Makefile.am-missing");
await stream.CopyToAsync (new MemoryStream ());
Fails as expected with
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: 404 (Not Found)
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode ()
Hi Marek, We are certainly seeing time out issues. You are getting AggregateException. Could you please list all the Exceptions? Could you also try non async call?
That's the only exception I get.
What non-async call? HttpClient supports only async methods.
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and reopen the bug report.