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.
NuGet v3 fails to request proxy credentials in Mono because the HttpClient's HttpClientHandler throws a WebException instead of throwing a HttpRequestException with the WebException set as its InnerException.
On Windows a HttpRequestException is thrown with the error message: "An error occurred while sending the request." and the WebException is set as the HttpRequestException's InnerException.
Tests for this problem are available from the following GitHub repository:
NuGet v3.4.4 (unpatched for Mono) catches the HttpRequestException here:
NuGet v3.5 has been patched for Mono with the following commit which checks that the exception thrown is a WebException:
Fixed in master and 4.8 branch
This fix looks good to me.
There seems to be another different problem where credentials for the proxy are not accepted for https package sources. Package sources that use http are OK. Mono 4.4.1 is also OK. I will look into this other problem and open a new bug with a test repro.