question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

5.0.300 dotnet restore ignores proxy settings

See original GitHub issue

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:

  • Environment: Docker (using mcr.microsoft.com/dotnet/sdk:5.0 image)
  • Custom NuGet feed configured in NuGet.config (nuget.mycorp.com)
  • HTTP(S) proxy configured using http_proxy and https_proxy env variables
  • Using no_proxy env variable to configure direct access to custom feed (no_proxy=nuget.mycorp.com)
  • Restore works with SDK 5.0.203, same setup fails with SDK 5.0.300

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erdembayarcommented, Jul 8, 2021

@michal-ciechan: Could you please try 16.11 preview 3 and letting us know the outcome?

@aortiz-msft He already confirmed problem is fixed with 16.11 Preview 2, also I manually verified it yesterday. https://github.com/NuGet/Home/issues/10932#issuecomment-875514246

0reactions
jirikopeckycommented, Aug 16, 2021

Hello, I can confirm that SDK 5.0.400 fixed the issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

net core - dotnet restore fails using corporate proxy
I just upgraded to dotnet core 2.1, but dotnet restore is failing. For some reason it is not using the http_proxy or https_proxy...
Read more >
Untitled
Dotnet nuget config proxy The NuGet client ignores the NO_PROXY setting #10902 - Github ... 5.0.300 dotnet restore ignores proxy settings dotnet/sdk#17991.
Read more >
Configure ASP.NET Core to work with proxy servers and ...
Restricts hosts by the X-Forwarded-Host header to the values provided. Values are compared using ordinal-ignore-case. Port numbers must be ...
Read more >
Dotnet restore fails using corporate proxy
I just upgraded to dotnet core 2.1, but dotnet restore is failing. For some reason it is not using the http_proxy or https_proxy...
Read more >
7124b168cc7e0c6a11120728ad...
NET ignores any globally installed .NET version. Remove that environment setting to let .NET consider the default global install location when selecting the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found