Packages not showing up in the Teamcity Nuget feed issues

Hi,

We are using TeamCity Enterprise 8.1.5 (build 30240) hosted on Windows Server 2012 and are facing the issue were some of existing packages have stopped showing up in the Teamcity NuGet feed. We have tried the re-index method suggested in the forum and still no luck. Attached is the screenshot of the Teamcity server log after the indexing was completed. Also some of the packages missing are part of a build which has other packages showing up on the NuGet feed w/o issues. Any other suggestions to fix this issue?

teamcity-server-log.JPG

Thanks
Reva

3 comments
Comment actions Permalink

The packages are in the feed. For some unexplainable reason, we get pages of 100 entries each time. It turns out that the feed URL only gives the first page out. This is totally, completely, utterly ridiculous.

If we query the feed for one of the missing packages we get results, demonstrating the package is in there. Is there a way to get the URL to display all the packages in the feed?

0
Comment actions Permalink

It is a nuget standard to return only 100 items at a time. Pagination is achieved by looking at the <link> element at the end of each page of data and making a new request with the URL contained there, which contains a “skiptoken” parameter and retrieving the next page of data. It looks like the TeamCity nuget server does not handle the “skiptoken” parameter correctly, and therefore does not return subsequent pages of data. Can you help us with this issue – list all available packages via URL or how to get the “skiptoken” parameter work?

0
Comment actions Permalink

Hi,

Sorry for delay. I've create the issue https://youtrack.jetbrains.com/issue/TW-40215, please watch and vote for it.
As current workaround you can use the following request:

https://www.nuget.org/api/v2/Packages?$top=100&$skip=100

and increase the $skip parameter by 100 in a loop.

0

Please sign in to leave a comment.