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!

404 on push



  • Hi I have a NuGet feed that I created and I can upload packages through the web GUI just fine but when I attempt to do so through the cmd line I get the following error:

    PS C:\HealthMonitor> nuget push .\HealthMonitors.1.0.0.2.nupkg -ApiKey abc123 -Verbosity detailed -Source http://server:81/nuget/HealthMonitors
    Pushing HealthMonitors 1.0.0.2 to 'http://server:81/nuget/HealthMonitors'...
    PUT http://server:81/nuget/HealthMonitors/
    System.InvalidOperationException: Failed to process request. 'Not Found'.
    The remote server returned an error: (404) Not Found.. ---> System.Net.WebException: The remote server returned an error
    : (404) Not Found.
       at System.Net.HttpWebRequest.GetResponse()
       at NuGet.RequestHelper.GetResponse(Func`1 createRequest, Action`1 prepareRequest, IProxyCache proxyCache, ICredential
    Cache credentialCache, ICredentialProvider credentialProvider)
       at NuGet.HttpClient.GetResponse()
       at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable`1 expectedStatusCode)
       --- End of inner exception stack trace ---
       at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable`1 expectedStatusCode)
       at NuGet.PackageServer.PushPackageToServer(String apiKey, Func`1 packageStreamFactory, Int64 packageSize, Int32 timeo
    ut)
       at NuGet.PackageServer.PushPackage(String apiKey, IPackage package, Int64 packageSize, Int32 timeout)
       at NuGet.Commands.PushCommand.PushPackageCore(String source, String apiKey, PackageServer packageServer, String packa
    geToPush, TimeSpan timeout)
       at NuGet.Commands.PushCommand.PushPackage(String packagePath, String source, String apiKey, TimeSpan timeout)
       at NuGet.Commands.PushCommand.ExecuteCommand()
       at NuGet.Commands.Command.Execute()
       at NuGet.Program.Main(String[] args)
    

    If I hit up that URL in the browser it's fine and returns

    <service xmlns:atom="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns="http://www.w3.org/2007/app" xml:base="http://server:81/nuget/HealthMonitors">
    <workspace>
    <atom:title>Default</atom:title>
    <collection href="Packages">
    <atom:title>Packages</atom:title>
    </collection>
    </workspace>
    </service>
    

    Any ideas?

    Product: ProGet
    Version: 2.2.13



  • I believe this is a bug in NuGet; https://nuget.codeplex.com/workitem/4050

    If not, I would suggest to do a fiddler trace to see specifically which url is failing,.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation