-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.0.300 dotnet restore ignores proxy settings #17991
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Hello, i have a similar issue. While trying to setup a proxy WITH Authentication for the docker build using the nuget.config and environmental variables. The settings are ignored or not handled correctly. For more information regarding the test setup, please ask. Best regards |
I noticed this same issue with SDK v5.0.300. If I clear my proxy environment variables (
|
Adding from NuGet/Home#6981 (comment) My issue is that we need to use proxy for a single source. and not for others. We have HTTP_PROXY set so that everything picks it up correctly. We also have NO_PROXY set for various domains/IP ranges that cannot go through the proxy. Global <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!-- This needs to go through Proxy -->
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<!-- This cannot go through Proxy. Has exclusion in NO_PRXY -->
<add key="TeamCityInternal" value="http://nuget.internal/" />
</packageSources>
</configuration> And then we have
This works perfectly fine when running It doesn't work when running Using |
|
FYI @nkolev92 |
Dup in NuGet/Home#10902. cc @erdembayar who fixed it. fyi @aortiz-msft, we might need to consider patching this. |
For reference, the fix is available in the 5.0.400 dailies, #18041. |
@sfoslund I moved it to the NuGet side so that we can consider patching. |
Here is link for daily build if someone wants to download 5.0.400 daily build |
this is still broken in VS |
@michal-ciechan: Could you please try 16.11 preview 3 and letting us know the outcome? |
@aortiz-msft |
Hello, I can confirm that SDK 5.0.400 fixed the issue. Thanks! |
Our build server is behind proxy and we use private NuGet feed. This feed have to be accessed directly, without the proxy. Feed DNS name is configured in
no_proxy
environment variable.dotnet restore
fails with HTTP 504 Gateway Timeout.Summaray:
mcr.microsoft.com/dotnet/sdk:5.0
image)http_proxy
andhttps_proxy
env variablesno_proxy
env variable to configure direct access to custom feed (no_proxy=nuget.mycorp.com
)The text was updated successfully, but these errors were encountered: