Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Download fails on sites that require credentials where default credentials would work #2

Open
rkeithhill opened this issue Jul 8, 2015 · 1 comment

Comments

@rkeithhill
Copy link

We have an internal web server setup that provides various internal installers. It requires Windows authentication to log onto the site. I started playing around with creating Chocolatey packages that will pull down an installer from this web site and install it on a machine. That is all going very well using Chocolatey 0.9.9.8. However when I try to install the same package using WMF 5 April Preview, I get this error:

22# Install-Package AcmeServer -Source ChocoAcme

WARNING: Unable to download from URI 'http://downloads.den.acme.com Yada yada yada

If I monitor a working choco install AcmeServer -y session with Fiddler, I see that the downloads web server returns a 401 auth error but choco tries again using my default Windows credentials. And the download succeeds. The Chocolatey provider on the other hand, does not try again after it receives the 401 auth error. It just bombs out. It seems to me that the provider should behave like choco.exe and upon receiving a 401 error, it should retry using the current user's default credentials.

@ferventcoder
Copy link
Contributor

https://github.com/chocolatey/chocolatey-oneget is where to open these issues. Not sure why it went otherwise and apologies about missing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants