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!

    Not possible to access package with metadata in version

    Scheduled Pinned Locked Moved Support
    6 Posts 2 Posters 23 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.
    • J Offline
      Jana.Rebmann_7461
      last edited by

      Hi,
      we are using a nuget package which has metadata information in the version. It is NaturalSort.Extension 3.1.0+build.51. When installing nuget packages via nuget.exe an error appears which seems to find the package in proget but is not able to access it probably because of the metadata part in the file name.

      GET https://proget.eschbach.com/nuget/nuget-internal/Packages(Id='NaturalSort.Extension',Version='3.1.0')
      build 16-Jun-2021 10:34:24 OK https://proget.eschbach.com/nuget/nuget-internal/Packages(Id='NaturalSort.Extension',Version='3.1.0') 7ms
      build 16-Jun-2021 10:34:24 GET https://proget.eschbach.com/nuget/nuget-internal/package/NaturalSort.Extension/3.1.0+build.51
      build 16-Jun-2021 10:34:24 NotFound https://proget.eschbach.com/nuget/nuget-internal/package/NaturalSort.Extension/3.1.0+build.51 1ms
      build 16-Jun-2021 10:34:24 WARNING: Unable to find version '3.1.0' of package 'NaturalSort.Extension'.

      Additionally since the update to version 5.3.31 the service status page does not show any health checks anymore. How can I reactivate them?

      1 Reply Last reply Reply Quote 0
      • gdivisG Offline
        gdivis inedo-engineer
        last edited by

        Hi,

        Try using the NuGet v3 API for your feed instead- just use https://proget.eschbach.com/nuget/nuget-internal/v3/index.json as the package source URL in NuGet. NuGet's handling of semantic versions in the old API can be inconsistent, so this may resolve the issue.

        J 2 Replies Last reply Reply Quote 0
        • J Offline
          Jana.Rebmann_7461 @gdivis
          last edited by

          @gdivis
          Hi, thank's for the fast reply! I changed the URL as following:
          nuget.exe restore Shiftconnector.sln -Source https://proget.eschbach.com/nuget/nuget-internal/v3/index.json

          I think I'm still missing something, it tries to do a OData query from what I see:

          17-Jun-2021 08:12:48WARNING: Unable to find version '3.1.0' of package 'NaturalSort.Extension'.
          build 17-Jun-2021 08:12:48 C:\Windows\system32\config\systemprofile.nuget\packages: Package 'NaturalSort.Extension.3.1.0' is not found on source 'C:\Windows\system32\config\systemprofile.nuget\packages'.
          build 17-Jun-2021 08:12:48 https://proget.eschbach.com/nuget/nuget-internal/v3/index.json: Unable to load the service index for source https://proget.eschbach.com/nuget/nuget-internal/v3/index.json.
          build 17-Jun-2021 08:12:48 Response status code does not indicate success: 404 (OData method is not implemented.).

          In proget I have the nuget connector configured with URL: https://api.nuget.org/v3/index.json

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jana.Rebmann_7461
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • J Offline
              Jana.Rebmann_7461 @gdivis
              last edited by

              @gdivis
              I found the missing setting. It was in Manage Feed > Supported API. I selected "JSON-LD (v3)" and now all is fine.

              As this setting was not automatically activated in Proget it would help in my opinion to add it in you docs https://docs.inedo.com/docs/proget-feeds-nuget-problems-with-my-nuget-org-connectors Currently it says If you have already upgrade to ProGet 5.3+, you are not affected by this.

              Thank you,
              Jana

              1 Reply Last reply Reply Quote 0
              • gdivisG Offline
                gdivis inedo-engineer
                last edited by

                I'm glad you got it working! I had forgotten that flag was even added :/

                I'll chat with the docs team to get things clarified in there, or maybe see if we can change the default to enable v3 by default from now on.

                Thanks!
                -Greg

                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