You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.
Can not upgrade behind a proxy server that requires credentials.
Functional impact
There seems to be a bug with upgrading behind a proxy server.
Minimal repro steps
I'm on dnvm v1.0.0-beta8-15506 (latest at time of writing).
Use a network connection with a proxy server that requires credentials.
Specify a proxy server argument to upgrade: dnvm upgrade -Proxy <server>:<port>
Expected result
Should upgrade okay.
Actual result
Fails to upgrade.
Determining latest version
Unable to find any runtime packages on the feed!
At C:\Users\<user>\.dnx\bin\dnvm.ps1:584 char:9
+ throw "Unable to find any runtime packages on the feed!"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to find ...es on the feed!:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to find any runtime packages on the feed!
Further technical details
The -Proxy parameter is not being passed to the method calls Find-Latest and Invoke-NuGetWebRequest. Editing C:\Users\<user>\.dnx\bin\dnvm.ps1 line 1335 from:
Determining latest version
'dnx-clr-win-x86.1.0.0-beta7' is already installed in C:\Users\<user>\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7.
Adding C:\Users\<user>\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to process PATH
Adding C:\Users\<user>\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta7\bin to user PATH
Updating alias 'default' to 'dnx-clr-win-x86.1.0.0-beta7'
Also, you might as well also add the proxy on line 1338, from:
Title
Can not upgrade behind a proxy server that requires credentials.
Functional impact
There seems to be a bug with upgrading behind a proxy server.
Minimal repro steps
I'm on dnvm v1.0.0-beta8-15506 (latest at time of writing).
dnvm upgrade -Proxy <server>:<port>
Expected result
Should upgrade okay.
Actual result
Fails to upgrade.
Further technical details
The
-Proxy
parameter is not being passed to the method callsFind-Latest
andInvoke-NuGetWebRequest
. EditingC:\Users\<user>\.dnx\bin\dnvm.ps1
line 1335 from:... to:
... produces a much more pleasing:
Also, you might as well also add the proxy on line 1338, from:
...to:
This was originally reported (issue, PR) in the Home repo; moved to dnvm repo by request.
The text was updated successfully, but these errors were encountered: