Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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.

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 10 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      antonio.sanchez_7988
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        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

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 1
        • A Offline
          antonio.sanchez_7988
          last edited by

          Thank you very much for the support!

          Have a nice week.
          Regards!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation