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!

    Nuget connector not working properly

    Scheduled Pinned Locked Moved Support
    4 Posts 2 Posters 16 Views 1 Watching
    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
      jyip_5228
      last edited by

      I have noticed that since upgrading to v5.3.5 Proget, the connector/nuget feed is not working properly. For example I am trying to download CommonServiceLocator.1.3.0.0.nupkg, it is an external package in the public nuget server. This is what i get when running in CLI

      C:\Dev\Nuget>nuget install CommonServiceLocator -Version 1.3.0 -Source https://localprogetserver/nuget/ks-nuget/
      Feeds used:
        C:\Dev\NuGet\packages
        https://localprogetserver/nuget/ks-nuget/
      
      Attempting to gather dependency information for package 'CommonServiceLocator.1.3.0' with respect to project 'C:\Dev\Nuget', targeting 'Any,Version=v0.0'
      Gathering dependency information took 342 ms
      Attempting to resolve dependencies for package 'CommonServiceLocator.1.3.0' with DependencyBehavior 'Lowest'
      Resolving dependency information took 0 ms
      Resolving actions to install package 'CommonServiceLocator.1.3.0'
      Resolved actions to install package 'CommonServiceLocator.1.3.0'
      Retrieving package 'CommonServiceLocator 1.3.0' from 'https://localprogetserver/nuget/ks-nuget/'.
        GET https://localprogetserver/nuget/ks-nuget/package/CommonServiceLocator/1.3
        NotFound https://localprogetserver/nuget/ks-nuget/package/CommonServiceLocator/1.3 152ms
      WARNING: Install failed. Rolling back...
      Executing nuget actions took 199 ms
      Package 'CommonServiceLocator.1.3.0' is not found on source 'https://localprogetserver/nuget/ks-nuget/'.
      

      98234f4a-cf7f-4bef-8cf3-e62a5fcfabe1-image.png
      8fde7963-6e16-4ac5-b456-68e5acda33fe-image.png
      2b43cb0c-bb56-4702-991a-47e843cf6a19-image.png
      In the pictures above, it shows that its clearly available online through the external connector.
      Prior/ expected result when I try to install a nuget package not on our local proget server is that I get proxied out to the external nuget.org and get the installation.

      Please assist.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jyip_5228
        last edited by

        I might have found a temporary fix by utilizing enabling and utilizing v3 api, running this allows it to install perfectly fine it seems.

        nuget install CommonServiceLocator -Version 1.3.0 -Source https://localnugetserver/nuget/ks-nuget/v3/index.json
        

        can someone look into this issue/ verify that it is not just me having the issue?

        1 Reply Last reply Reply Quote 0
        • apxltdA Offline
          apxltd inedo-engineer
          last edited by

          Hard to say, but there were some bugs with NuGet.org, where some packages would not show up when queried through the v2 API, but would come with v3. I wonder if it's related to you using a v3 API connector, but a v2 API call to ProGet? It should work.

          You can append #v2 to a nuget.org connector's API to force it to use the v2 api instead of the v3.

          Founder and CEO, Inedo

          1 Reply Last reply Reply Quote 0
          • J Offline
            jyip_5228
            last edited by

            I tested the following: changing the nuget connector to utilize v2. The effect is the same where I cannot pull from nuget.org. This definitely worked prior to v5.3

            Right now i have proget running a v3 api for the feed with a v2 connector and it is working fine so far.

            I believe its a bug when the feed is running v2.

            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