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!

    Cannot restore package using ProGet feed with FindPackagesById()

    Scheduled Pinned Locked Moved Support
    feedsnugetproget
    3 Posts 1 Posters 128 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've recently installed ProGet. Using the latest version of the NuGet command line client (3.4.4.1321) and ProGet (4.1.0 beta), we have a package 'foo' with a version '1.10' that ProGet is not exposing to the NuGet client during a package restore of a solution. The NuGet client tries a bunch of different ways to download it, but they all return 404:

      > nuget restore path\to\solution.sln 
      MSBuild auto-detection: using msbuild version '12.0' from 'C:\Program Files (x86)\MSBuild\12.0\bin'.
      Restoring NuGet package foo.1.10.0.
        GET http://nuget.ourserver.com/Packages(Id='foo',Version='1.10.0')
        NotFound http://nuget.ourserver.com/Packages(Id='foo',Version='1.10.0') 13ms
        GET http://nuget.ourserver.com/FindPackagesById()?id='foo'
        NotFound http://nuget.ourserver.com/FindPackagesById()?id='foo' 12ms
        GET https://api.nuget.org/v3-flatcontainer/foo/1.10.0/foo.1.10.0.nupkg
        NotFound https://api.nuget.org/v3-flatcontainer/foo/1.10.0/foo.1.10.0.nupkg 137ms
      WARNING: Unable to find version '1.10.0' of package 'foo'.
        C:\Users\user\AppData\Local\NuGet\Cache: Package 'foo.1.10.0' is not found on source 'C:\Users\user\AppData\Local\NuGet\Cache'.
        http://nuget.ourserver.com/: The V2 feed at 'http://nuget.ourserver.com/FindPackagesById()?id='foo'' returned an unexpected status code '404 Not Found'.
      

      It was my understanding that ProGet implements the NuGet v2 feed protocol -- but it seems like FindPackagesById() and the Packages(Id=) syntax is not supported. Is this normal?

      Product: ProGet
      Version: 4.1.0

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

        Hi there, based on the error I'm guessing you specified an incorrect feedsource of http://nuget.ourserver.com/

        It should be http://nuget.ourserver.com/nuget/FeedName

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

          Aha! Thank you! I didn't realize the feed wasn't at the root, since normal 'nuget push' and 'nuget install' commands worked with just the root URL as the '-Source' parameter. Only the 'nuget restore' failed.

          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