Skip to content

5.0.300 dotnet restore ignores proxy settingsΒ #10932

Closed
@nkolev92

Description

@jirikopecky commented on Mon, 31 May 2021 14:34:05 GMT
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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions