ChocolateyGUI
ChocolateyGUI copied to clipboard
Empty list on feed
I get an empty list on the remote feed on page 3:
- Open Chocolatey GUI
- Switch to source (bbt in this case)
- Packages are shown. Click next to go to second page
- Packages are shown. Click next to go to third page
- Empty page is displayed
@pascalberger out of interest, how many packages do you have on that feed? i.e. "should" there be anything on that third page?
@pascalberger if/when you have a minute, can you test this out again with the latest from the MyGet Feed? The new version now includes a page number at the bottom of the page. I am curious if this shows anything that could help.
@gep13 Tried with v0.16.0-unstable0046. Going to Community Feed source, click next empty page appears:
Also packages on the first page seem to be wrong (they are definitely not the most popular 6 packages on the community feed):
Overall seems like it retrieves the correct number of pages, but only 6 packages and therefore all other pages are empty.
I wonder if you are seeing some of the caching issues that happen from time to time, i.e. why are you only getting 6 packages in the list. /cc @ferventcoder
^ This. I've been seeing some weird issues myself.
No idea here myself. Could be issues with the remote repo. Might be a good idea to check there and see if it experiences the same.
I also had this on our internal ProGet hosted feed. So definitely not only a community feed caching issue
@pascalberger is it happening reliably, or is it intermittent?
@gep13 Reliable. ProGet shows 110 packages on the feed.
@pascalberger ok, will likely need to you provide some logs, and perhaps some output from running Chocolatey directly as well. @RichiCoder1 any thoughts on exactly what we would need in order to figure out what the issue is here?
@pascalberger I have been able to replicate at least part of this problem by using the chocolatey.org feed.
If I navigate to the last page there (which is 131) I get an empty page. If I go to the page before, I get 46 results returned. So something is off somewhere.
Internally, Chocolatey GUI is using a method in Chocolatey.Lib to return the total package count (which is currently coming back as 6527) which tallies with the packages currently on chocolatey.org:
However, based on paging through the results, I am getting the total number of packages to be 6496, not 6527.
i.e. (129 * 50) + 46 = 6496
If I run the command:
choco list --source https://chocolatey.org/api/v2
and look at the number returned at the end, I get a different number again:
While this number is "closer" the the number returned when paging through the results, it still isn't the same (off by 1).
Long story short...
I don't think that this is an issue with Chocolatey GUI, but not sure yet on how to prove, or correct that.
My issue was with a ProGet hosted feed. So, issue seems also not related to server implementation (assuming we're talking about a single issue only here). This would only leave Chocolatey.Lib left, responsible for this.
@pascalberger as yet, I have been unable to replicate this issue. As such, I am going to remove this from the 0.18.0 milestone. And will continue to monitor for this issue happening, and to try to get a reproducible test that would allow us to figure out what is going on with it.