ChocolateyGUI icon indicating copy to clipboard operation
ChocolateyGUI copied to clipboard

Empty list on feed

Open pascalberger opened this issue 6 years ago • 13 comments

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

image

pascalberger avatar Oct 20 '17 08:10 pascalberger

@pascalberger out of interest, how many packages do you have on that feed? i.e. "should" there be anything on that third page?

gep13 avatar Oct 25 '17 20:10 gep13

@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 avatar Oct 27 '17 19:10 gep13

@gep13 Tried with v0.16.0-unstable0046. Going to Community Feed source, click next empty page appears:

grafik

Also packages on the first page seem to be wrong (they are definitely not the most popular 6 packages on the community feed):

grafik

Overall seems like it retrieves the correct number of pages, but only 6 packages and therefore all other pages are empty.

pascalberger avatar Oct 28 '17 05:10 pascalberger

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

gep13 avatar Oct 28 '17 11:10 gep13

^ This. I've been seeing some weird issues myself.

RichiCoder1 avatar Oct 28 '17 23:10 RichiCoder1

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.

ferventcoder avatar Oct 29 '17 15:10 ferventcoder

I also had this on our internal ProGet hosted feed. So definitely not only a community feed caching issue

pascalberger avatar Oct 29 '17 17:10 pascalberger

@pascalberger is it happening reliably, or is it intermittent?

gep13 avatar Oct 29 '17 18:10 gep13

@gep13 Reliable. ProGet shows 110 packages on the feed.

pascalberger avatar Oct 29 '17 19:10 pascalberger

@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?

gep13 avatar Oct 30 '17 07:10 gep13

@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:

image

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:

image

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.

gep13 avatar Apr 25 '19 14:04 gep13

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 avatar Apr 25 '19 14:04 pascalberger

@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.

gep13 avatar Mar 08 '21 10:03 gep13