Comments (15)
http://blogs.lessthandot.com/index.php/DesktopDev/MSTech/getting-chocolatey-to-work-when
from chocolatey.
fixed in 63cf4e0
from chocolatey.
I am having an error while installing one of the packages
A positional parameter cannot be found that accepts argument 'proxy.company.private:8080'
from chocolatey.
Which package are you seeing this with? Or is it any package?
from chocolatey.
the chocolatey version is 0.9.8.11 and I was installing nodejs. But not only installing nodejs
from chocolatey.
do you guys have a proxy in place?
Someone else reported issues with the proxy code that we took from a patch.
If you go to C:\NuGet\chocolateyInstall\helpers\chocolateyInstaller.psm1
and comment out lines 499-507:
if (!$webclient.Proxy.IsBypassed($url))
{
$cred = get-credential
$proxyaddress = $webclient.Proxy.GetProxy($url).Authority
Write-host "Using this proxyserver: " $proxyaddress
$proxy = New-Object System.Net.WebProxy($proxyaddress)
$proxy.credentials = $cred.GetNetworkCredential();
$req.proxy = $proxy
}
to be
# if (!$webclient.Proxy.IsBypassed($url))
# {
# $cred = get-credential
# $proxyaddress = $webclient.Proxy.GetProxy($url).Authority
# Write-host "Using this proxyserver: " $proxyaddress
# $proxy = New-Object System.Net.WebProxy($proxyaddress)
# $proxy.credentials = $cred.GetNetworkCredential();
# $req.proxy = $proxy
# }
Then tell me what you see.
from chocolatey.
Attempting to install not (cinst nodejs)
With those lines commented out I get...
Downloading nodejs (http://nodejs.org/dist/v0.6.0/node.exe) to C:\NuGet\lib\nodejs.0.6.0\tools\node.exe
[ERROR] nodejs did not finish successfully. Boo to the chocolatey gods!
[ERROR] Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required."
Without them commented out I get...
Downloading nodejs (http://nodejs.org/dist/v0.6.0/node.exe) to C:\NuGet\lib\nodejs.0.6.0\tools\node.exe
[ERROR] nodejs did not finish successfully. Boo to the chocolatey gods!
[ERROR] A positional parameter cannot be found that accepts argument '10.0.100.2:8080'.
I do have a proxy in place and the argument it is complaining about is it. Without those lines commented it requests my credentials.
from chocolatey.
We need better proxy support. :(
from chocolatey.
FWIW, this seemed to work for me:
if (!$webclient.Proxy.IsBypassed($url))
{
#$cred = get-credential
$proxyaddress = $webclient.Proxy.GetProxy($url).Authority
Write-host "Using this proxyserver: $proxyaddress"
#$proxy = New-Object System.Net.WebProxy($proxyaddress)
#$proxy.credentials = $cred.GetNetworkCredential();
#$req.proxy = $proxy
$req.proxy.credentials = [System.Net.CredentialCache]::DefaultCredentials;
}
from chocolatey.
Fixing this again for the first time, for the last time? ;)
from chocolatey.
Hopefully this is fixed with the latest bits coming in 0.9.8.17. If not we will add a config value to specify your proxy type.
from chocolatey.
Almost all packages are not working inside of our auth proxy with Chocolatey 0.9.8.20
The Chocolatey commands (clist, cver, etc.) are still working correctly, and it is working to retry the request with new credential when the proxy returns 407 status code.
Here is my modification.
yoshimov@60705c3
from chocolatey.
Working with Chocolatey v0.9.8.23, cinst
was not working from behind an ISA proxy using NTLM until C:\Chocolatey\chocolateyinstall\helpers\functions\Get-WebFile.ps1
was modified like so:
#if (!$webclient.Proxy.IsBypassed($url))
#{
# $creds = [net.CredentialCache]::DefaultCredentials
# if ($creds -eq $null) {
# Write-Debug "Default credentials were null. Attempting backup method"
# $cred = get-credential
# $creds = $cred.GetNetworkCredential();
# }
# $proxyaddress = $webclient.Proxy.GetProxy($url).Authority
# Write-host "Using this proxyserver: $proxyaddress"
# $proxy = New-Object System.Net.WebProxy($proxyaddress)
# $proxy.credentials = $creds
# $req.proxy = $proxy
#}
if (!$webclient.Proxy.IsBypassed($url))
{
$proxyaddress = $webclient.Proxy.GetProxy($url).Authority
Write-host "Using this proxyserver: $proxyaddress"
$req.proxy.credentials = [net.CredentialCache]::DefaultCredentials
}
from chocolatey.
I'm thinking we'll want to do some configuration file stuff for proxies since there seems to be different ways of handling the way in
from chocolatey.
@grenade would you file a new issue?
from chocolatey.
Related Issues (20)
- Hello! HOT 15
- The system cannot find the file specified error on every cinst HOT 6
- Chocolatey installation error on Windows 10 64bit Home-PC HOT 4
- install do not work with source and version HOT 7
- Install Write Error VirtualBox HOT 2
- Use different cache location HOT 2
- Can't uninstall package HOT 4
- Proxy setting ignored for local connections HOT 6
- Fix Chocolatey client multiple sources HOT 3
- The shimgen command window of Fritzing does not close HOT 2
- shutdown /a causes Boxstarter to report a failure HOT 2
- gr
- How to manage packages with PowerShell? HOT 2
- o %PATH% HOT 3
- A Windows distrib includes 7zip for x64 HOT 1
- ERROR: Exception calling "Start" with "0" argument(s) HOT 3
- Could not establish trust relationship for the SSL/TLS secure channel HOT 2
- When I installed BAZEL, there was such a problem, HOT 7
- FEATURE REQUEST - cpush.exe - more informative message about https://push.chocolatey.org/
- install in Windows turn wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolatey.