Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Install Packages - 400 Error #1130

Open
davidking727 opened this issue Jan 9, 2017 · 36 comments
Open

Cannot Install Packages - 400 Error #1130

davidking727 opened this issue Jan 9, 2017 · 36 comments

Comments

@davidking727
Copy link

Cannot install packages. New install of Window 10 Pro. Used NotepadPlusPlus as example, but ALL packages return 400 error

PS C:\Windows\system32> choco search notepadplusplus
Chocolatey v0.10.3
jivkok.dev1 1.1.0.8
notepadplusplus 7.3 [Approved]
notepadplusplus.install 7.3 [Approved]
notepadplusplus.commandline 7.3 [Approved]
Notepadplusplus.Settings 1.0.0.20141029 [Approved] - Possibly broken
5 packages found.
PS C:\Windows\system32> choco install notepadplusplus -y
Chocolatey v0.10.3
Installing the following packages:
notepadplusplus
By installing you accept licenses for the packages.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.
notepadplusplus package files install completed. Performing other installation steps.
The install of notepadplusplus was NOT successful.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • notepadplusplus (exited 1) - notepadplusplus not installed. An error occurred during installation:
    The remote server returned an error: (400) Bad Request.
    PS C:\Windows\system32> choco install notepadplusplus -d -v
    Chocolatey v0.10.3
    Chocolatey is running on Windows v 10.0.14393.0
    Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
    Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
    Command line: "C:\ProgramData\chocolatey\choco.exe" install notepadplusplus -d -v
    Received arguments: install notepadplusplus -d -v
    RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
    Sending message 'PreRunMessage' out if there are subscribers...
    [Pending] Removing all pending packages that should not be considered installed...
    The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='install'|
CacheLocation='C:\Users\dking\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Force='False'|Noop='False'|
HelpRequested='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='notepadplusplus'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='notepadplusplus'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.14393.0'|
Information.PlatformName='Windows'|
Information.ChocolateyVersion='0.10.3.0'|
Information.ChocolateyProductVersion='0.10.3'|
Information.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
notepadplusplus
By installing you accept licenses for the packages.
[NuGet] Attempting to resolve dependency 'notepadplusplus.install (= 7.3)'.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.
notepadplusplus package files install completed. Performing other installation steps.
No package information as package is null.
No package information to save as package is null.
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The install of notepadplusplus was NOT successful.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • notepadplusplus (exited 1) - notepadplusplus not installed. An error occurred during installation:
    The remote server returned an error: (400) Bad Request.
    Sending message 'PostRunMessage' out if there are subscribers...
    Exiting with 1
    PS C:\Windows\system32> ^M
@ferventcoder
Copy link
Member

Run with -dv to capture more output

@davidking727
Copy link
Author

PS C:\Windows\system32> choco install notepadplusplus -dv
Chocolatey v0.10.3
Chocolatey is running on Windows v 10.0.14393.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install notepadplusplus -dv
Received arguments: install notepadplusplus -dv
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='install'|
CacheLocation='C:\Users\DKING\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Force='False'|Noop='False'|
HelpRequested='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='notepadplusplus'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='notepadplusplus'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.14393.0'|
Information.PlatformName='Windows'|
Information.ChocolateyVersion='0.10.3.0'|
Information.ChocolateyProductVersion='0.10.3'|
Information.FullName='choco, Version=0.10.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
notepadplusplus
By installing you accept licenses for the packages.
[NuGet] Attempting to resolve dependency 'notepadplusplus.install (= 7.3)'.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.
notepadplusplus package files install completed. Performing other installation steps.
No package information as package is null.
No package information to save as package is null.
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The install of notepadplusplus was NOT successful.
notepadplusplus not installed. An error occurred during installation:
The remote server returned an error: (400) Bad Request.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • notepadplusplus (exited 1) - notepadplusplus not installed. An error occurred during installation:
    The remote server returned an error: (400) Bad Request.
    Sending message 'PostRunMessage' out if there are subscribers...
    Exiting with 1
    PS C:\Windows\system32>

@ferventcoder
Copy link
Member

Since this is only being seen with your environment, if you can install Fiddler and run that when you try this again, that would be most helpful. That likely it is something with a proxy in your environment or something limiting traffic.

If you are running this from a VirtualBox VM, ensure you have 5.1.9+ installed (5.1.8 had issues).

@Mutzefugel
Copy link

Just had the same issue on a new Win 10 company laptop.
As we had some issues in the past with our arcane company proxy I tried it at home in home office (no proxy present).
However just deactivating the proxy in win settings didn't work for me.
I also had to unset the HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables that were set per AD.
Re-tested it:

  • One admin-console with proxy env-vars set --> choco install failed.
  • One admin-console with proxy env-vars unset (by using 'set HTTP_PROXY=' etc.) --> choco install succeeded.

@Mutzefugel
Copy link

Just did some tests in company network...
(with company proxy set in win settings).

  • choco install notepadplusplus -> 400
  • choco install notepadplusplus.install -> 400
  • choco install visualstudiocode -> works
  • choco install nuget.commandline -> works
  • choco install conemu -> 400
  • choco install postman -> works

Strange behavior - still not knowing if it's the proxy, some weired network configuration or chocolatey.
Reproducible on 3 machines.

@GerbenWelter
Copy link

I'm experiencing the same issue with our current server hosting several packages.. I setup a second simple chocolatey server with just one package (curl). There's no proxy between the client and server. This is the output from the client:

C:\Program Files\Puppet Labs\Puppet\bin>choco install -y curl
Installing the following packages:
curl
By installing you accept licenses for the packages.
curl not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "http://chocolatey.server/chocolatey/Packages"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - curl - curl not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "http://chocolatey.server/chocolatey/Packages"

Using Wireshark I see the client getting /chocolatey/Packages. After that the client requests /chocolatey/Packages/$metadata. This triggers the 400 error. The servers responds with:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code></code>
  <message xml:lang="en-US">The request URI is not valid. Since the segment 'Packages' refers to a collection, this must be the last segment in the request URI. All intermediate segments must refer to a single resource.</message>
</error>

@ferventcoder Is requesting $metadata in the URI valid? Or is this actually a variable that wasn't interpolated?

Both client and server are running Windows 2012 R2 with recent patches.

@ferventcoder
Copy link
Member

@GerbenWelter Your source should be "http://chocolatey.server/chocolatey" and nothing more. HTH

@GerbenWelter
Copy link

This certainly helps. Now it works again. The old source url has worked since we started with Chocolatey over half a year ago, so something must have changed. Anyway thank you @ferventcoder for the quick pointer.

@GerbenWelter
Copy link

Ah, now I see why. The source url was wrong in chocolatey.config but was getting overrided by Puppet with the correct one. Using choco from the cli made the error surface. Sorry, for the noise.

@davidking727
Copy link
Author

davidking727 commented Jan 28, 2017

I still have random 400 errors. Source listed in chocolatey.config is

"https://chocolatey.org/api/v2/"

@zech
Copy link

zech commented Mar 27, 2017

In my current setup this issue only appears with the package nodejs.install. It's a company laptop behind a proxy. This is the output with -dv:

You have nodejs.install v7.7.3 installed. Version 7.7.4 is available based on your source(s).
Backing up existing nodejs.install prior to operation.
Moving 'C:\ProgramData\chocolatey\lib\nodejs.install'
 to 'C:\ProgramData\chocolatey\lib-bkp\nodejs.install'
Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\nodejs.install.nupkg"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nupkg".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\nodejs.install.nuspec"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nuspec".
Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install\legal".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\legal\LICENSE.txt"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\legal\LICENSE.txt".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\legal\VERIFICATION.txt"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\legal\VERIFICATION.txt".
Attempting to create directory "C:\ProgramData\chocolatey\lib\nodejs.install\tools".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\tools\chocolateyInstall.ps1"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1".
Attempting to copy "C:\ProgramData\chocolatey\lib-bkp\nodejs.install\tools\node-v7.7.3-x64.msi.ignore"
 to "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v7.7.3-x64.msi.ignore".
Capturing package files in 'C:\ProgramData\chocolatey\lib\nodejs.install'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nupkg'
  with checksum 'B2496C6E15E1D15102ABB04194E5BA52'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\nodejs.install.nuspec'
  with checksum '81909E8B44ADF415B80F4C996CC2F232'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\LICENSE.txt'
  with checksum '637C5C82FC7332FC2F6A08E8DE0E3B52'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\legal\VERIFICATION.txt'
  with checksum '0E3011C04C1BCF850452839A00C1A45A'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\chocolateyInstall.ps1'
  with checksum '5B16028E2E647DF16EC468B3E2C2042E'
 Found 'C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v7.7.3-x64.msi.ignore'
  with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956'
Attempting to delete file "C:\ProgramData\chocolatey\lib\nodejs.install\tools\node-v7.7.3-x64.msi.ignore".
nodejs.install not upgraded. An error occurred during installation:
 Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung.
nodejs.install package files upgrade completed. Performing other installation steps.
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.7.7.4\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\nodejs.install.7.7.4\.pin".
Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\nodejs.install".
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The upgrade of nodejs.install was NOT successful.
nodejs.install not upgraded. An error occurred during installation:
 Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung.
Moving 'C:\ProgramData\chocolatey\lib\nodejs.install'
 to 'C:\ProgramData\chocolatey\lib-bad\nodejs.install'
Attempting rollback

The URL http://chocolatey.org/api/v2/package/nodejs.install/7.7.4 results in a bad request. As soon as I change the URL to HTTPS the package gets downloaded (in the browser)

My config has the following source entry:

<source id="chocolatey" value="https://chocolatey.org/api/v2/" disabled="false" priority="0" />

No explicit proxy settings (But I tried with no avail). Just using system settings as explained here: Wiki

All other packages are working. For example: openvpn, git or keepass

The nodejs package works without a proxy.

Thanks in advance.

@ferventcoder
Copy link
Member

Okay, weird that it flips it over to http instead of https.

@ferventcoder
Copy link
Member

This makes it seem like the issue actually lies over in https://github.com/chocolatey/chocolatey.org/issues - at least what you found @zech

@zech
Copy link

zech commented Mar 27, 2017

I don't know if I get this. I used the command choco upgrade all -y or choco install nodejs -y to install it in the first place.

i searched the issue to make sure this is not already solved or my mistake and found this open issue. the best relating issue i can find in your linked list is this one here https://github.com/chocolatey/chocolatey.org/issues/324

but it doesn't help much as well. do you have any ideas what i can do further?

@ferventcoder
Copy link
Member

Both of these issues could actually be issues with the community repository (a package source, but not the only packaging source available when it comes to Chocolatey) and not the choco.exe client. Since it is discovering the url from the community package repository (https://chocolatey.org/api/v2), it appears to be getting the wrong url (https://rs.http3.lol/index.php?q=aHR0cHM6Ly9naXRodWIuY29tL2Nob2NvbGF0ZXkvY2hvY28vaXNzdWVzL0hUVFAgaW5zdGVhZCBvZiBIVFRQUw).

Does that make more sense?

@zech
Copy link

zech commented Mar 28, 2017

Thanks, now I understand. So would you recommend to open a new issue there?

@sthag
Copy link

sthag commented Aug 2, 2017

I'm also experiencing problems installing some packages. Others work without a problem.
I'm on Windows 10 using Chocolatey v0.10.7 and also behind a Proxy which is configured in the Windows system settings.
My package source is https://chocolatey.org/api/v2/

Packages which don't work are for example:
libreoffice, notepadplusplus, conemu, nodejs, virtualbox.

As far as I understand the last post, it is not a problem of choco itself but the packages?
But I don't know what to do about it and therefore wanted to ask for help.

  • Is it possible to prevent the issue with certain commands?
  • Should the problem be reported to the specific packages discussion?

@davidking727
Copy link
Author

I still have this issue. No proxy. Several different computers. Its a real pain.

@ferventcoder
Copy link
Member

ferventcoder commented Aug 3, 2017

As far as I understand the last post, it is not a problem of choco itself but the packages?

More likely the caching in the community repository encounters an error. It typically resolves itself within a small amount of time. The site does receive a large number of requests per day (20+ million), so caching for some period of time is a necessity. It does mean if there is an update for an app, it may take it out of the picture for a bit. It rarely happens, but over 20 million requests per day, that rarely could be like 10 times a day. And it's not the only reason a person may not be able to receive packages:

  • network issues
  • hitting the community repository at peak times (which do vary from time to time)
  • proxy issues (both with the chocolatey site and with the official site of any non-redistributable software a package may need to download at runtime).
  • cache/index update fails due to timeout (usually fixed within a few minutes)

@zech
Copy link

zech commented Aug 3, 2017

I personally don't think this is a caching issue. Each and every time I try to install nodejs i have to go online via mobile hotspot as a workaround for the corporate proxy.

Even though that http and https connections are totally fine. For most other packages too. But for nodejs it errors out every time i try to install. git for example will install just fine through proxy.

@ferventcoder
Copy link
Member

ferventcoder commented Aug 3, 2017

Hi @zech, is your error with seeing the package or are you getting an issue with downloading the software once it has received the package?

This particular issue is with receiving the package, not the non-redistributable software that a package on a public repository would need to download at runtime (unlike an internal repo where you can just embed all software in the Chocolatey packages).

For your case, I would see if there is something with your corporate proxy that blocks the NodeJS website where that nodejs package downloads the software from at runtime.

@ferventcoder
Copy link
Member

@ferventcoder ferventcoder changed the title CANNOT INSTALL PACKAGES. 400 Error Cannot Install Packages - 400 Error Aug 3, 2017
@zech
Copy link

zech commented Aug 3, 2017

@ferventcoder its the same as i posted here with every version: #1130 (comment)

choco install nodejs -y throws this error every time. HTTP 400 Bad Request. I can download manually from nodejs.org thats what i did before working around with mobile hotspots.

Chocolatey is not blocked as well because every other package I use works.

choco install git -y totally fine. choco install libreoffice -y no problem at all. But everytime I try to install nodejs it throws this error.

Maybe I don't understand the differences between packages enough but from my point of view they're the same.

@ferventcoder
Copy link
Member

Okay, I saw that work when I went to the HTTP address in the browser. Can you produce a Fiddler report for this? Send to my github username at gmail dot com. Thanks!

@zech
Copy link

zech commented Aug 3, 2017

Okay. I can do that on monday.

@zech
Copy link

zech commented Aug 9, 2017

@ferventcoder I've just sent you the reports.

@sthag
Copy link

sthag commented Aug 11, 2017

I just want to give some feedback again:
I still cannot install certain packages. I tried at different times of the day. There are two errors:

[ERROR] - notepadplusplus not installed. An error occurred during installation: Der Remoteserver hat einen Fehler zurückgegeben: (400) Ungültige Anforderung. Bad Request

[WARN ] - [NuGet] Ein Aufrufziel hat einen Ausnahmefehler verursacht. [ERROR] - foobar2000 not installed. The package was not found with the source(s) listed.

I was able to install other packages without changing the system or chocolatey.
The package source is https://chocolatey.org/api/v2/

2017-08-11 12:57:38,895 5288 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED
2017-08-11 12:57:38,895 5288 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED
2017-08-11 12:57:38,926 5288 [DEBUG] - XmlConfiguration is now operational
2017-08-11 12:57:38,957 5288 [INFO ] - ============================================================
2017-08-11 12:57:39,457 5288 [INFO ] - Chocolatey v0.10.7
2017-08-11 12:57:39,473 5288 [DEBUG] - Chocolatey is running on Windows v 10.0.15063.0
2017-08-11 12:57:39,473 5288 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-08-11 12:57:39,473 5288 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-08-11 12:57:39,489 5288 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y notepadplusplus
2017-08-11 12:57:39,504 5288 [DEBUG] - Received arguments: install -y notepadplusplus
2017-08-11 12:57:39,551 5288 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-08-11 12:57:39,551 5288 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-08-11 12:57:39,567 5288 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2017-08-11 12:57:39,614 5288 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2017-08-11 12:57:39,614 5288 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2017-08-11 12:57:39,629 5288 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\USERREPLACED\AppData\Local\Temp\chocolatey'|

ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='notepadplusplus'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='notepadplusplus'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.15063.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.7.0'|
Information.ChocolateyProductVersion='0.10.7'|
Information.FullName='choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='shagedorn'|Information.UserDomainName='SHNUC'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|
Proxy.Location='http://IP:PORT'|Proxy.BypassOnLocal='True'|
2017-08-11 12:57:39,629 5288 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2017-08-11 12:57:39,645 5288 [INFO ] - Installing the following packages:
2017-08-11 12:57:39,645 5288 [INFO ] - notepadplusplus
2017-08-11 12:57:39,660 5288 [INFO ] - By installing you accept licenses for the packages.
2017-08-11 12:57:39,739 5288 [DEBUG] - Using proxy server 'http://IP:PORT'.
2017-08-11 12:57:40,676 5288 [INFO ] - [NuGet] Attempting to resolve dependency 'notepadplusplus.install (= 7.4.2)'.
2017-08-11 12:57:41,176 5288 [ERROR] - notepadplusplus not installed. An error occurred during installation:
 Der Remoteserver hat einen Fehler zur𣫧egeben: (400) Ung𬴩ge Anforderung. Bad Request
2017-08-11 12:57:41,192 5288 [INFO ] - notepadplusplus package files install completed. Performing other installation steps.
2017-08-11 12:57:41,208 5288 [DEBUG] - No package information as package is null.
2017-08-11 12:57:41,254 5288 [DEBUG] - No package information to save as package is null.
2017-08-11 12:57:41,254 5288 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2017-08-11 12:57:41,254 5288 [ERROR] - The install of notepadplusplus was NOT successful.
2017-08-11 12:57:41,270 5288 [ERROR] - notepadplusplus not installed. An error occurred during installation:
 Der Remoteserver hat einen Fehler zur𣫧egeben: (400) Ung𬴩ge Anforderung. Bad Request
2017-08-11 12:57:41,286 5288 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2017-08-11 12:57:41,301 5288 [INFO ] - 
2017-08-11 12:57:41,317 5288 [ERROR] - Failures
2017-08-11 12:57:41,317 5288 [ERROR] -  - notepadplusplus (exited 1) - notepadplusplus not installed. An error occurred during installation:
 Der Remoteserver hat einen Fehler zur𣫧egeben: (400) Ung𬴩ge Anforderung. Bad Request
2017-08-11 12:57:41,333 5288 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2017-08-11 12:57:41,348 5288 [DEBUG] - Exiting with 1
2017-08-11 13:08:12,424 5336 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED
2017-08-11 13:08:12,424 5336 [DEBUG] - Configured chocolatey.infrastructure.logging.log4net.config.xml from assembly choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED
2017-08-11 13:08:12,453 5336 [DEBUG] - XmlConfiguration is now operational
2017-08-11 13:08:12,483 5336 [INFO ] - ============================================================
2017-08-11 13:08:12,989 5336 [INFO ] - Chocolatey v0.10.7
2017-08-11 13:08:13,005 5336 [DEBUG] - Chocolatey is running on Windows v 10.0.15063.0
2017-08-11 13:08:13,010 5336 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2017-08-11 13:08:13,015 5336 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2017-08-11 13:08:13,026 5336 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install -y foobar2000
2017-08-11 13:08:13,031 5336 [DEBUG] - Received arguments: install -y foobar2000
2017-08-11 13:08:13,079 5336 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2017-08-11 13:08:13,089 5336 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2017-08-11 13:08:13,098 5336 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2017-08-11 13:08:13,148 5336 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2017-08-11 13:08:13,153 5336 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2017-08-11 13:08:13,165 5336 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\USERREPLACED\AppData\Local\Temp\chocolatey'|

ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='foobar2000'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='foobar2000'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.15063.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.7.0'|
Information.ChocolateyProductVersion='0.10.7'|
Information.FullName='choco, Version=0.10.7.0, Culture=neutral, PublicKeyToken=KEYREPLACED'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='shagedorn'|Information.UserDomainName='SHNUC'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PinCommand.Command='unknown'|
OutdatedCommand.IgnorePinned='False'|
Proxy.Location='http://IP:PORT'|Proxy.BypassOnLocal='True'|
2017-08-11 13:08:13,169 5336 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2017-08-11 13:08:13,176 5336 [INFO ] - Installing the following packages:
2017-08-11 13:08:13,185 5336 [INFO ] - foobar2000
2017-08-11 13:08:13,193 5336 [INFO ] - By installing you accept licenses for the packages.
2017-08-11 13:08:13,238 5336 [DEBUG] - Using proxy server 'http://IP:PORT'.
2017-08-11 13:08:14,560 5336 [WARN ] - [NuGet] Ein Aufrufziel hat einen Ausnahmefehler verursacht.
2017-08-11 13:08:14,569 5336 [ERROR] - foobar2000 not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2017-08-11 13:08:14,588 5336 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2017-08-11 13:08:14,597 5336 [INFO ] - 
2017-08-11 13:08:14,605 5336 [ERROR] - Failures
2017-08-11 13:08:14,615 5336 [ERROR] -  - foobar2000 - foobar2000 not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"
2017-08-11 13:08:14,626 5336 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2017-08-11 13:08:14,633 5336 [DEBUG] - Exiting with 1

@zech
Copy link

zech commented Sep 2, 2017

@ferventcoder Did it help?

@dirvo
Copy link

dirvo commented Sep 20, 2017

I also faced this problem. The issue seems to be that requests are done via http instead of https. I don't know where the http URLs come from, maybe they are contained in an incorrect feed retrieved by an earlier request (so that could explain why the problem exists only for some packages).

For what it's worth, I noted that the following request fails from the choco client but works from Postman and the browser (using identical proxy configuration):

GET http://chocolatey.org/api/v2/FindPackagesById?id='fiddler4'&$skiptoken='fiddler4','4.6.20171.14978' HTTP/1.1
MaxDataServiceVersion: 2.0;NetFx
User-Agent: Chocolatey Core
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8
Host: chocolatey.org
Accept-Encoding: gzip, deflate

My solution to the problem was to convert all requests to http://chocolatey.org to https://chocolatey.org using a custom Fiddler rule:

if (!oSession.isHTTPS && !oSession.HTTPMethodIs("CONNECT") && oSession.HostnameIs("chocolatey.org")) 
{
    oSession.oRequest.headers.UriScheme = "https";
}

@chadmyers
Copy link

chadmyers commented Jan 22, 2018

Is anyone else still getting this? I just set up a new PC and was able to install several packages and then all of a sudden, every package I try just fails:

Chocolatey v0.10.8
Installing the following packages:
firefox
By installing you accept licenses for the packages.
[NuGet] An error occurred while loading packages from 'https://chocolatey.org/api/v2/': The underlying connection was closed: An unexpected error occurred on a send.
firefox not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - firefox - firefox not installed. The package was not found with the source(s) listed.
 If you specified a particular version and are receiving this message, it is possible that the package name exists but the version does not.
 Version: ""
 Source(s): "https://chocolatey.org/api/v2/"

I thought it might have been a temporary problem or outage, but it's been like this for a week now

UPDATE UPDATE UPDATE

I was having SSL issues on other sites as well. It turns out that it was the network drivers for the NIC on my motherboard (MSI z370 and the "Killer" network drivers).

When I uninstalled those and reverted to use the built-in Windows drivers, everything worked.

@davidking727
Copy link
Author

davidking727 commented Jan 22, 2018 via email

@chadmyers
Copy link

@davidking727 What helped me realize it wasn't chocolatey but my PC was when I tried to go to https://www.mozilla.org and got a CONNECTION_RESET because it couldn't establish SSL. When I uninstalled the network drivers and reverted, I could then use both chocolatey and hit https://www.mozilla.org

Have you tried hitting https://www.mozilla.org in Chrome to see if you get a CONNECTION_RESET error?

@zech
Copy link

zech commented Jan 23, 2018

I don't know if all those errors are related but I'm getting this error for all packages now. I don't really know since when but this is the output for git if i trace with fiddler:

Request

GET http://chocolatey.org/api/v2/package/git.install/2.16.1 HTTP/1.0
User-Agent: NuGet Core/0.10.8.0 (Microsoft Windows NT 10.0.15063.0)
NuGet-Operation: Update-Dependency
NuGet-DependentPackage: git
Host: chocolatey.org

Response

HTTP/1.0 400 Bad Request
Date: Tue, 23 Jan 2018 08:38:00 GMT
Content-Type: text/html
Content-Length: 11
Set-Cookie: __cfduid=d8b2ce76b665be930305a4182d003ee941516696680; expires=Wed, 23-Jan-19 08:38:00 GMT; path=/; domain=.chocolatey.org; HttpOnly
X-Content-Type-Options: nosniff
Server: cloudflare
CF-RAY: 3e196f2c55e3972c-FRA
X-Cache: MISS from proxy.fakedomain.local
X-Cache-Lookup: MISS from proxy.fakedomain.local:3128
Via: 1.0 proxy.fakedomain.local (squid/3.1.19)
Connection: close

Bad Request

Calling the same address with a browser downloads the nupkg just fine. No issue here.

@veracosta
Copy link

I am facing the same problem.
As someone mentioned previously, not all the packages would fail to install.

Here's my output with -dv.

PS C:\Users\foo> choco install flashplayeractivex -dv
Chocolatey v0.10.11
Chocolatey is running on Windows v 6.1.7601.65536
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install flashplayeractivex -dv
Received arguments: install flashplayeractivex -dv
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type

NOTE: Hiding sensitive configuration data! Please double and triple
 check to be sure no sensitive data is shown, especially if copying
 output to a gist for review.
Configuration: CommandName='install'|
CacheLocation='C:\Users\foo\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='True'|Verbose='True'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='flashplayeractivex'|
AllVersions='False'|SkipPackageInstallProvider='False'|
PackageNames='flashplayeractivex'|Prerelease='False'|ForceX86='False'|
OverrideArguments='False'|NotSilent='False'|
ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.1.7601.65536'|
Information.PlatformName='Windows 7'|
Information.ChocolateyVersion='0.10.11.0'|
Information.ChocolateyProductVersion='0.10.11'|
Information.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='False'|
Information.Is64BitProcess='False'|Information.IsInteractive='True'|
Information.UserName='foo'|Information.UserDomainName='AT'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.Location='http://my-proxy-name:3128'|
Proxy.BypassOnLocal='True'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
flashplayeractivex
By installing you accept licenses for the packages.
Using proxy server 'http://my-proxy-name:3128'.
flashplayeractivex not installed. An error occurred during installation:
 リモート サーバーがエラーを返しました: (400) 要求が不適切です Bad Request
flashplayeractivex package files install completed. Performing other installation steps.
No package information as package is null.
No package information to save as package is null.
Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
The install of flashplayeractivex was NOT successful.
flashplayeractivex not installed. An error occurred during installation:
 リモート サーバーがエラーを返しました: (400) 要求が不適切です Bad Request

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - flashplayeractivex (exited 1) - flashplayeractivex not installed. An error occurred during installation:
 リモート サーバーがエラーを返しました: (400) 要求が不適切です Bad Request
Sending message 'PostRunMessage' out if there are subscribers...
Exiting with 1

@addisonhuddy
Copy link

I ran into a similar issue today.

[NuGet] An error occurred while loading packages from 'https://chocolatey.org/api/v2/': Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

I upgraded my VirtualBox to the latest release and that resolved my issue.

@ferventcoder
Copy link
Member

Howdy folks, some of you may be running into an issue due to IPv6 as we've found on other tickets. We are not sure why it effects PowerShell downloading badly yet, but that it does. For those that have a proxy, you may need to ensure your proxy allows more than just *.chocolatey.org as the packages there are subject to distribution rights (public repo), so the packages must download the software from the official locations.

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

No branches or pull requests

10 participants