Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
System.OverflowException, Failed to retrieve metadata from source.
-
Hi!
I have an on-premise ProGet server where i store my personal .NET Nuget packages. A few days ago I started to have an error that I have not been able to solve.
When the Visual Studio try to retrieve the metadata from the package source i got an Internal Server Error (500).
The internal error that i see in the ProGet Diagnostic Center is:An error occurred processing a GET request to http://proget.ci.son/nuget/sOn-Nuget-Debug/v3/search?q=&skip=0&take=26&prerelease=false&supportedFramework=.NETFramework,Version=v4.6.2&supportedFramework=.NETFramework,Version=v4.7.2&semVerLevel=2.0.0: Value was either too large or too small for an Int32. System.OverflowException: Value was either too large or too small for an Int32. at System.Convert.ThrowInt32OverflowException() at System.Convert.ToInt32(Int64 value) at Newtonsoft.Json.Linq.JToken.op_Explicit(JToken value) at Inedo.ProGet.Feeds.NuGet.V3.NuGetPackageV3..ctor(JObject obj, NuGetConnector connector, String contentUrl, Byte[] sha512Hash, String registrationUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetPackageV3.cs:line 89 at Inedo.ProGet.Feeds.NuGet.V3.NuGetPackageV3SearchResult..ctor(JObject obj, NuGetConnector connector, String contentUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetPackageV3SearchResult.cs:line 19 at Inedo.ProGet.Feeds.NuGet.V3.NuGetV3Client.<SearchAsync>b__8_0(JObject o) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetV3Client.cs:line 98 at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.UnionIterator`1.GetNext() at System.Linq.Enumerable.UnionIterator`1.MoveNext() at Inedo.ProGet.Feeds.NuGet.NuGetFeed.RemoveDuplicatesAndApplyFilters(IEnumerable`1 source) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGetCoreEx\Feeds\NuGet\NuGetFeed.cs:line 1031 at Inedo.ProGet.Feeds.NuGet.NuGetFeed.SearchV3Async(String searchTerm, Int32 skip, Nullable`1 maxResults, Boolean includePrerelease) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGetCoreEx\Feeds\NuGet\NuGetFeed.cs:line 236 at Inedo.ProGet.WebApplication.FeedEndpoints.NuGet.V3.SearchHandler.ProcessRequestAsync(NuGetFeed feed, HttpContext context, String relativeUrl) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGet.WebApplication\FeedEndpoints\NuGet\V3\SearchHandler.cs:line 31 at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(HttpContext context) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E123848\Src\ProGet.WebApplication\FeedEndpoints\FeedEndpointHandler.cs:line 191
Does anyone have any idea why this is happening?
Thank you in advance
Best regards.
-
Hello,
This is related to a known issue that's been addressed in ProGet 6.0.19 and ProGet 2022.5. So, your best bet is to upgrade and the issue will become resolved :)
This is related to a few packages that have exceeded 2.2 billion downloads:
- Microsoft.NETCore.Platforms
- Microsoft.Extensions.Primitives
- Microsoft.Extensions.DependencyInjection.Abstractions
If the upgrade is impossible/difficult immediately, you can disable the connector as a workaround. Alternatively, you could block those packages with a connector filter and then upload them to your feed so that the counts won't come through the connector.
Thanks,
Rich
-
Thank you very much for the support!
Have a nice week.
Regards!