{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/6978","repository_url":"https://api.github.com/repos/NuGet/Home","labels_url":"https://api.github.com/repos/NuGet/Home/issues/6978/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/6978/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/6978/events","html_url":"https://github.com/NuGet/Home/issues/6978","id":327098558,"node_id":"MDU6SXNzdWUzMjcwOTg1NTg=","number":6978,"title":"dotnet restore, with HTTP_PROXY and HTTPS_PROXY (with user/password) broken again","user":{"login":"livarcocc","id":367554,"node_id":"MDQ6VXNlcjM2NzU1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"labels":[{"id":346004020,"node_id":"MDU6TGFiZWwzNDYwMDQwMjA=","url":"https://api.github.com/repos/NuGet/Home/labels/Area:%20Auth","name":"Area: Auth","color":"fef2c0","default":false},{"id":722811433,"node_id":"MDU6TGFiZWw3MjI4MTE0MzM=","url":"https://api.github.com/repos/NuGet/Home/labels/Area:%20Dotnet%20CLI","name":"Area: Dotnet CLI","color":"49b2c6","default":false},{"id":270095664,"node_id":"MDU6TGFiZWwyNzAwOTU2NjQ=","url":"https://api.github.com/repos/NuGet/Home/labels/Investigate","name":"Investigate","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-05-28T19:00:07Z","updated_at":"2018-06-06T13:30:04Z","closed_at":null,"author_association":"NONE","body":"_From @tebeco on May 28, 2018 14:11_\n\n## Steps to reproduce\r\n* setup an NTLM proxy\r\n* add a Nuget.Config with \r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<configuration>\r\n  <config>\r\n    <add key=\"dependencyVersion\" value=\"Highest\" />\r\n    <add key=\"no_proxy\"    value=\"*.yourCorp\" />\r\n  </config>\r\n <packageSources>\r\n    <!--To inherit the global NuGet package sources remove the <clear/> line below -->\r\n    <clear />\r\n    <add key=\"nuget\" value=\"https://api.nuget.org/v3/index.json\" />\r\n    <add key=\"corpFeed\" value=\"https://yourfeed.yourCorp\" />\r\n...\r\n </packageSources>\r\n</configuration>\r\n```\r\n* Setup proxy in your shell\r\n```\r\n$> set HTTP_PROXY=http://user:password@your-proxy:port\r\n$> set HTTPS_PROXY=http://user:password@your-proxy:port\r\n\r\n$> dotnet restore\r\n```\r\n\r\n* try nuget for fun\r\n```\r\n$> nuget\r\nNuGet Version: 4.6.0.4971\r\n\r\n$> >nuget restore YOUR_PROJECT.csproj\r\n .... IT WORKS\r\n```\r\n\r\nsoooooo anyone know how to make `dotnet restore` works behind an NTLM proxy ?\r\n##### NUGET is OK\r\n##### PAKET is OK (without any env var)\r\n##### DOTNET ... was ok ... with only proxy URL\r\n##### DOTNET is KO without env var\r\n##### DOTNET is KO with env var\r\n##### DOTNET is KO with env var + user / password in the NTLM proxy url (no special character in either user or password)\r\n\r\n## Expected  behavior\r\n... it should work\r\n\r\n## Actual behavior\r\n* All internal feed nugets are OK and restored\r\n* dotnet still fails behind proxy\r\n\r\n```\r\nC:\\Program Files\\dotnet\\sdk\\2.1.300-rc1-008673\\NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [D:\\xxxxxx\\xxxxxx.csproj]\r\nC:\\Program Files\\dotnet\\sdk\\2.1.300-rc1-008673\\NuGet.targets(114,5): error :   Response status code does not indicate success: 407 (authenticationrequired). [D:\\xxxxxx\\xxxxxx.csproj]\r\n```\r\n\r\n\r\n## Environment data\r\n```\r\n>dotnet --info\r\n.NET Core SDK (reflecting any global.json):\r\n Version:   2.1.300-rc1-008673\r\n Commit:    f5e3ddbe73\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  10.0.15063\r\n OS Platform: Windows\r\n RID:         win10-x64\r\n Base Path:   C:\\Program Files\\dotnet\\sdk\\2.1.300-rc1-008673\\\r\n\r\nHost (useful for support):\r\n  Version: 2.1.0-rc1\r\n  Commit:  eb9bc92051\r\n\r\n.NET Core SDKs installed:\r\n  2.1.4 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.100 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.101 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.102 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.103 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.104 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.105 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.200 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.201 [C:\\Program Files\\dotnet\\sdk]\r\n  2.1.300-rc1-008673 [C:\\Program Files\\dotnet\\sdk]\r\n\r\n.NET Core runtimes installed:\r\n  Microsoft.AspNetCore.All 2.1.0-rc1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.All]\r\n  Microsoft.AspNetCore.App 2.1.0-rc1-final [C:\\Program Files\\dotnet\\shared\\Microsoft.AspNetCore.App]\r\n  Microsoft.NETCore.App 2.0.5 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.6 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.0.7 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n  Microsoft.NETCore.App 2.1.0-rc1 [C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App]\r\n\r\nTo install additional .NET Core runtimes or SDKs:\r\n  https://aka.ms/dotnet-download\r\n```\r\n\n\n_Copied from original issue: dotnet/cli#9358_"},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/395068684","html_url":"https://github.com/NuGet/Home/issues/6978#issuecomment-395068684","issue_url":"https://api.github.com/repos/NuGet/Home/issues/6978","id":395068684,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTA2ODY4NA==","user":{"login":"SirinivasK","id":16236641,"node_id":"MDQ6VXNlcjE2MjM2NjQx","avatar_url":"https://avatars3.githubusercontent.com/u/16236641?v=4","gravatar_id":"","url":"https://api.github.com/users/SirinivasK","html_url":"https://github.com/SirinivasK","followers_url":"https://api.github.com/users/SirinivasK/followers","following_url":"https://api.github.com/users/SirinivasK/following{/other_user}","gists_url":"https://api.github.com/users/SirinivasK/gists{/gist_id}","starred_url":"https://api.github.com/users/SirinivasK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirinivasK/subscriptions","organizations_url":"https://api.github.com/users/SirinivasK/orgs","repos_url":"https://api.github.com/users/SirinivasK/repos","events_url":"https://api.github.com/users/SirinivasK/events{/privacy}","received_events_url":"https://api.github.com/users/SirinivasK/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T13:30:04Z","updated_at":"2018-06-06T13:30:04Z","author_association":"NONE","body":"I am also facing the same issue. I am struggling to find a solution for last two days. This is a blocker for me at the moment. I tried setting up the http_proxy/https_proxy with the username but still no luck.\r\nThis is how my docker file looks like:\r\nFROM microsoft/aspnetcore:2.0-nanoserver-sac2016 AS base\r\nWORKDIR /app\r\nEXPOSE 80\r\n\r\nFROM microsoft/aspnetcore-build:2.0-nanoserver-sac2016 AS build\r\nWORKDIR /src\r\nCOPY IdSvr/IdSvr.csproj IdSvr/\r\nRUN dotnet restore IdSvr.csproj\r\nCOPY . .\r\nWORKDIR /src/IdSvr\r\nRUN dotnet build IdSvr.csproj -c Release -o /app\r\n\r\nFROM build AS publish\r\nRUN dotnet publish IdSvr.csproj -c Release -o /app\r\n\r\nFROM base AS final\r\nWORKDIR /app\r\nCOPY --from=publish /app .\r\nENTRYPOINT [\"dotnet\", \"IdSvr.dll\"]\r\n\r\nOutput:\r\nStep 7/16 : RUN dotnet restore IdSvr/IdSvr.csproj\r\n ---> Running in 244dbef710b6\r\n  Restoring packages for C:\\src\\IdSvr\\IdSvr.csproj...\r\n  Restoring packages for C:\\src\\IdSvr\\IdSvr.csproj...\r\n  Restore completed in 10.46 sec for C:\\src\\IdSvr\\IdSvr.csproj.\r\nC:\\Program Files\\dotnet\\sdk\\2.1.200\\NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\\src\\IdSvr\\IdSvr.csproj]\r\nC:\\Program Files\\dotnet\\sdk\\2.1.200\\NuGet.targets(114,5): error :   An error occurred while sending the request. [C:\\src\\IdSvr\\IdSvr.csproj]\r\nC:\\Program Files\\dotnet\\sdk\\2.1.200\\NuGet.targets(114,5): error :   The operation timed out [C:\\src\\IdSvr\\IdSvr.csproj]\r\nERROR: Service 'idsvr' failed to build: The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; dotnet restore IdSvr/IdSvr.csproj' returned a non-zero code: 1\r\n\r\nNote:\r\non my local, sdk 2.0.0 installed by default, but while trying to restore it is pointing to 2.1.200 which is not installed on my machine. \r\n\r\n"}}
{"actor":{"display_login":"SirinivasK"}}