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.

restore.cmd fails under a proxy environment

See original GitHub issue

To Reproduce

Steps to reproduce the behavior:

  1. Execute restore.cmd under a proxy environment.
  2. 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:closed
  • Created 4 years ago
  • Comments:17 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
dougbucommented, Sep 24, 2020

@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.

0reactions
chcostacommented, Nov 17, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

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