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!

    Error on FindPackagesById

    Scheduled Pinned Locked Moved Support
    nugetproget
    4 Posts 2 Posters 18 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.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I currently get the following issue in ProGet (just updated to the newest version, it didn't work in 5.2.3 either): When trying to access the FindPackagesById() endpoint for any feed I get the error:

      "An error occurred getting the package: The version number provided is invalid. See https://inedo.com/support/kb/1157#semver2 for details on version number formatting restrictions."

      The traceback for this (as gathered from the admin panel) is as follows:

      System.AggregateException: The version number provided is invalid. See https://inedo.com/support/kb/1157#semver2 for 
          details on version number formatting restrictions. ---> System.FormatException: String is not a valid semantic version.
      at Inedo.ProGet.Feeds.SemanticVersion2.Parse(String s)
      at Inedo.ProGet.Feeds.NuGet.NuGetVersion.Parse(String s, Boolean legacy)
      --- End of inner exception stack trace ---
      at Inedo.ProGet.Feeds.NuGet.NuGetVersion.Parse(String s, Boolean legacy)
      at Inedo.ProGet.WebApplication.UnifiedFeedBrowsing.Feeds.NuGetFeedDataFactory.<GetPackageAsync>d__3.MoveNext()
      --- End of stack trace from previous location where exception was thrown ---
      at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
      at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      at Inedo.ProGet.WebApplication.Pages.Packages.PackageVersionPage.<GetPackageAsync>d__24.MoveNext()
      ---> (Inner Exception #0) System.FormatException: String is not a valid semantic version.
      at Inedo.ProGet.Feeds.SemanticVersion2.Parse(String s)
      at Inedo.ProGet.Feeds.NuGet.NuGetVersion.Parse(String s, Boolean legacy)<---
      
      ---> (Inner Exception #1) System.FormatException: Invalid version number.
      at Inedo.ProGet.Feeds.NuGet.LegacyNuGetVersion.Parse(String version)
      at Inedo.ProGet.Feeds.NuGet.NuGetVersion.Parse(String s, Boolean legacy)<---
      

      This happens even on a completely empty feed .

      Since this function is used by nuget during the restore step, the server is essentially useless in this case.

      Product: ProGet
      Version: 5.2.4

      1 Reply Last reply Reply Quote 0
      • jjonesJ Offline
        jjones inedo-engineer
        last edited by

        Hello,

        I'd like to get a little more information regarding this ticket. Can you provide me some screen shots of your feed settings and other relevant screens.

        Thanks,
        Jason

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          What exactly do you need? For the record, I just tried to delete all feeds and recreate them from scratch and still get the same error.

          Here's the error in the browser: Error
          Since this is HTML, the nuget client complains about invalid XML:

          My feed settings look like this: Feed Settings

          The error is the same regardless of whether a connector to our previous Nuget server is configured or not.

          1 Reply Last reply Reply Quote 0
          • jjonesJ Offline
            jjones inedo-engineer
            last edited by

            Hi,

            We are still discussing this issue internally. I am wondering if the issue could be with the endpoint.. can you change to /nuget/default instead of /feeds/default/nuget

            Thanks,
            Jason

            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