restore.cmd fails under a proxy environment
See original GitHub issueTo Reproduce
Steps to reproduce the behavior:
- Execute
restore.cmd
under a proxy environment. - Fail to download
install.ps1
here. https://github.com/aspnet/AspNetCore/blob/28678ee430e9f9a8407e846441ab98692b9f9507/eng/common/tools.ps1#L162
Logs
C:\github\AspNetCore>build.cmd
WARNING: No default group of projects was specified, so building the 'managed' subsets of projects. Run `build.cmd
-help` for more details.
Detected JDK in C:\Program Files\AdoptOpenJDK\jdk-11.0.3.7-hotspot (via JAVA_HOME)
at GetDotNetInstallScript, C:\github\AspNetCore\eng\common\tools.ps1: line 162
at InstallDotNet, C:\github\AspNetCore\eng\common\tools.ps1: line 173
at InstallDotNetSdk, C:\github\AspNetCore\eng\common\tools.ps1: line 169
at InitializeDotNetCli, C:\github\AspNetCore\eng\common\tools.ps1: line 135
at InitializeBuildTool, C:\github\AspNetCore\eng\common\tools.ps1: line 354
at InitializeToolset, C:\github\AspNetCore\eng\common\tools.ps1: line 448
at <ScriptBlock>, C:\github\AspNetCore\build.ps1: line 342
at <ScriptBlock>, <No file>: line 1
authentication_failed
Are there any instructions as to build from source under a proxy environment? I cannot find one in here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (12 by maintainers)
Top Results From Across the Web
Rogue reset of Proxy Settings
a. Press Windows + X and select the option Command Prompt (Admin). b.
Read more >How to Unset the proxy from Windows command prompt ...
To delete variables in the current cmd instance, do this: set http_proxy= set https_proxy= or (even better):
Read more >How the Windows Update client determines which proxy ...
Click Start, click Run, type cmd, and then click OK. At the command prompt, type netsh winhttp reset proxy, and then press ENTER....
Read more >Proxy settings not used by cmd prompt
I have windows server ( AWS Workspace ) which uses a proxy server for internet access. I set the proxy in "Network and...
Read more >dotnet restore fails behind proxy using windows ...
What I'm seeing is that if I do a command line dotnet restore with the http_proxy environment variable set, it works no problem....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SIkebe I transferred this because I’m not familiar w/ using eng/common/tools.ps1 when a proxy is necessary. This repo is the owner of that file.
@Slkebe, I’m going to close this issue.
In principal, I’m not opposed to a PR to Arcade to support a proxy. As you may have inferred, however, there may be some push back by others. My primary concern, and the reason I think we’re unlikely to actually merge the PR, is that I don’t think we’re set up to support / maintain the functionality. It would be very easy for someone to unintentionally break the proxy authentication support and we wouldn’t find out until we impacted you / others. That’s a poor story and would likely cause a lot of bad experiences (both for you and for others).
Please feel free to push back if you feel that there is a strong case for further investment here.