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!
proget message:Value was either too large or too small for an Int32.
-
ProGet Version 6.0.14 (Build 3) (Docker/ Linux)
[Critical] proget message:Value was either too large or too small for an Int32.
I can't find a way to fix it, diagnostics center log :
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_E219620\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetPackageV3.cs:line 91
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_E219620\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetPackageV3SearchResult.cs:line 16
at Inedo.ProGet.Feeds.NuGet.V3.NuGetV3Client.b__8_0(JObject o) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGetCoreEx\Feeds\NuGet\V3\NuGetV3Client.cs:line 98
at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at System.Linq.Enumerable.UnionIterator1.GetNext() at System.Linq.Enumerable.UnionIterator1.MoveNext()
at Inedo.ProGet.Feeds.NuGet.NuGetFeed.RemoveDuplicatesAndApplyFilters(IEnumerable1 source) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGetCoreEx\Feeds\NuGet\NuGetFeed.cs:line 1099 at Inedo.ProGet.Feeds.NuGet.NuGetFeed.SearchV3Async(String searchTerm, Int32 skip, Nullable1 maxResults, Boolean includePrerelease) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGetCoreEx\Feeds\NuGet\NuGetFeed.cs:line 173
at Inedo.ProGet.Feeds.NuGet.NuGetFeed.Inedo.ProGet.Feeds.IBrowsablePackageFeed.SearchPackagesAsync(String query, Int32 maxCount, Boolean includePrerelease) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGetCoreEx\Feeds\NuGet\NuGetFeed.cs:line 1122
at Inedo.ProGet.WebApplication.Pages.Packages.ListPackagesPage.PackageList.InitializeAsyncInternal() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGet.WebApplication\Pages\Packages\ListPackagesPage.PackageList.cs:line 301
at Inedo.ProGet.WebApplication.Pages.Packages.ListPackagesPage.PackageList.InitializeAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp_E219620\Src\ProGet.WebApplication\Pages\Packages\ListPackagesPage.PackageList.cs:line 38===Additional Contact Info===
-
Same error with Version 6.0.16 (Build 4) (Windows)
Can anyone help us?
Thank you!
-
Same here for Version 2022.3 (Build 7) on windows.
-
Hi all,
This is a known issue, and it's addressed in ProGet 2022.6 and
ProGet 6.0.19.It seems to come from these three packages:
- Microsoft.NETCore.Platforms
- Microsoft.Extensions.Primitives
- Microsoft.Extensions.DependencyInjection.Abstractions
As a work-around, you can block those packages with a connector filter, or upload them to your feed so that the counts won't come through the connector.
Cheers,
Alana