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

Get-FullPackageInfo seems to be broken with CCR changes #41

Open
TheCakeIsNaOH opened this issue Apr 28, 2024 · 0 comments
Open

Get-FullPackageInfo seems to be broken with CCR changes #41

TheCakeIsNaOH opened this issue Apr 28, 2024 · 0 comments

Comments

@TheCakeIsNaOH
Copy link
Member

Expected Behavior

Get-FullPackageInfo -PackageId wget works

Current Behavior

It fails with a http error.

Invoke-RestMethod: \chocolatey-diff\chocolatey-diff\Public\Get-FullPackageInfo.ps1:32
Line |
  32 |  … ]$jsonVersions = Invoke-RestMethod -Uri $url -UseBasicParsing | Selec …
     |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | The page you requested was removed.
MethodInvocationException: F:\github\chocolatey-diff\chocolatey-diff\Classes\SemanticVersion.ps1:15
Line |
  15 |              $semVer.VersionOnly = [version]::Parse($version)
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "Parse" with "1" argument(s): "Version string portion was too short or too long. (Parameter
     | 'input')"

Name                           Value
----                           -----
Versions                       {}
Id                             wget
Url                            https://chocolatey.org/packages/

Possible Solution

Use one of the still supported API endpoints instead one of the removed ones.

Steps to Reproduce (for bugs)

  1. Import module on pwsh 7
  2. Run Get-FullPackageInfo -PackageId wget

Context

Module broken

Your Environment

  • Script version used: Latest master
  • Powershell Version used: 7.4.2
  • Operating System: Win 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant