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!

    Badrequest error when pushing nuget package to a linux install

    Scheduled Pinned Locked Moved Support
    proget
    6 Posts 2 Posters 29 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 have a clean new install of proget on a Linux vm in a Hyper-V 2012 system. I can access the proget web page and have set up a nugget feed with a end point of http://servername/nugget/feedname. When I try and push with "nugget.exe push test.1.0.0.nupkg -Source http://servername/nugget/feedname -ApiKey username:password" I get the following response:

      Pushing test.1.0.0.nupkg to 'http://servername/nugget/feedname'...
      PUT http://servername/nugget/feedname/
      BadRequest http://servername/nugget/feedname/ 162ms
      Response status code does not indicate success: 400 (Bad Request).

      any help would be appreciated.
      thanks in advance
      Bob

      Product: ProGet
      Version: 5.0.0

      1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer
        last edited by

        Hello Bob,

        You seem to have a typo in the feed URL. http://servername/nugget/feedname should be http://servername/nuget/feedname (with one g).

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

          it was typed correctly - the spell check changed it when I put in the question. Nuget is spelled correctly in the push statement.
          Bob

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

            Ben,
            here is a copy of the error in proget.

            Logged: 11/09/2017 10:27:08
            Level: Error
            Category: HTTP
            Message: An error occurred in the web application: Unable to write data to the transport connection: Connection reset by peer.
            Details: URL: http://quark/administration/error-log/entry?messageId=17
            Referrer: http://quark/administration
            User: Admin
            User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063
            Stack trace: at Inedo.Web.PageFree.SimplePageBase+<ProcessRequestAsync>d__48.MoveNext () [0x003d2] in <b3c8f625a9674e54b534ab21fc34bde8>:0
            --- End of stack trace from previous location where exception was thrown ---
            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <77c9551943624fd18301ba6f78a841e5>:0
            at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <77c9551943624fd18301ba6f78a841e5>:0
            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <77c9551943624fd18301ba6f78a841e5>:0
            at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <77c9551943624fd18301ba6f78a841e5>:0
            at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <77c9551943624fd18301ba6f78a841e5>:0
            at System.Web.TaskAsyncResult.Wait (System.IAsyncResult result) [0x00032] in <d777bf5120224d38839a5bae355ed440>:0
            at System.Web.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest (System.IAsyncResult result) [0x00000] in <d777bf5120224d38839a5bae355ed440>:0
            at Inedo.Web.Handlers.AsyncHandlerWrapper.EndProcessRequest (System.IAsyncResult result) [0x00000] in <b3c8f625a9674e54b534ab21fc34bde8>:0
            at System.Web.HttpApplication.async_handler_complete_cb (System.IAsyncResult ar) [0x00015] in <d777bf5120224d38839a5bae355ed440>:0

            Bob

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

              Ben,
              Here is the nuget statement used.

              e:\tools\nuget\nuget push x64GigaSoftProEssentials.7.0.2.nupkg -Source http://quark/nuget/RlsTech -ApiKey Admin:test

              bob

              1 Reply Last reply Reply Quote 0
              • benB Offline
                ben inedo-engineer
                last edited by

                Could you capture a Fiddler or WireShark trace of the ProGet response? There should be an error message associated with the 400 (either There must be exactly one package., which would indicate a proxy issue or Package validation failed: followed by an error message, although from a quick glance over the source code, I don't see how that could happen for a NuGet package.)

                Another possible cause is an IIS module, like WebDav, intercepting the request before it gets to ProGet.

                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