PSGallery search returning limited results
Opened this issue · 3 comments
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
PSGallery search returning limited results
Expected behavior
All resultsActual behavior
Limited resultsError details
No response
Environment data
n/aVersion
n/a
Visuals
I've noticed this issue today as well, getting inconsistent results/counts returned, running from multiple computers (work and home):
Running command: $Mods = Find-Module -Verbose
Work PC #1 - PSH 5
-
Initial
VERBOSE: Total package yield:'10789' for the specified package ''. -
10 Minutes later
VERBOSE: Total package yield:'640' for the specified package ''.
Work PC #2 - PSH 5
-
Initial
VERBOSE: Total package yield:'10789' for the specified package ''. -
25 Minutes later
VERBOSE: Total package yield:'160' for the specified package ''.
Home PC 1 - PSH v5
-
Initial
VERBOSE: Total package yield:'120' for the specified package ''. -
5 Minutes later
VERBOSE: Total package yield:'12' for the specified package ''. -
20 Minutes later
VERBOSE: Total package yield:'3' for the specified package 'A*'. -
30 Minutes later
VERBOSE: Total package yield:'3400' for the specified package ''.
Home PC 1 - PSH v7.5.3
-
Initial
VERBOSE: Total package yield:'160' for the specified package ''. -
20 Minutes later
VERBOSE: Total package yield:'3387' for the specified package ''.
Home PC #2 - PSH v5
-
Initial
VERBOSE: Total package yield:'3387' for the specified package ''. -
10 Minutes later
VERBOSE: Total package yield:'10789' for the specified package ''.
Using Find-PSResource on home PC #1:
-
PSH 7.5.3
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose
Find-PSResource: 'Response status code does not indicate success: 400 (Bad Request).' Request sent: 'https://www.powershellgallery.com/api/v2/Search()?$filter=%24filter=IsLatestVersion&%24inlinecount=allpages&%24skip=0&%24top=6000&%24orderby=Id+desc' -
PSH 7.5.4
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3301
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3120
- PSH v7.4.5 (Seems to get proper count more often - similar results on Work PC #1 as well)
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
10789
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
Find-PSResource: Package does not exist on the server
6000
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
10789
PS> $RSC = Find-PSResource -Type Module -Repository PSGallery -Verbose; $RSC.Count
3305
- NOTE: Though using Find-Module in same session yields the inconsistent results each time:
VERBOSE: Total package yield:'3440' for the specified package ''.
@ThomasNieto @BouwenMA @KSchu26 thanks for this information! This is an ongoing intermittent issue we're aware of and investigating...one thing to note is that doing a wildcard search with cmdlets (like Find-Module (v2), Find-PSResource -Type Module, Find-PSResource -Name "A*", etc) will hit this issue but if you know of the package name and search it specifically that will not run into this issue. We'd recommend using Find-PSResource from Microsoft.PowerShell.PSResourceGet module. For searching on the website, you can use the https://www.powershellgallery.com/packages/<MyPackage> url and that will also work


