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!

    Error 500 on package upload using common package API

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 9 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.
    • G Offline
      gunmaden
      last edited by

      Hi. There's non obvious behavior on uploading files using common package API with full logging enabled

      If API key has full logging enabled (Everything (Request Body + Response body)) request will be responded with 500 status code but package uploaded successfully

      HTTP/1.1 500 Internal Server Error
      Cache-Control: private
      Content-Length: 62
      Content-Type: text/plain
      Server: Microsoft-IIS/10.0
      X-ProGet-Version: 23.0.18.15
      X-Powered-By: ASP.NET
      Date: Mon, 16 Oct 2023 12:17:03 GMT
      
      Operation is not valid due to the current state of the object.
      
      System.InvalidOperationException: Operation is not valid due to the current state of the object.
      at Inedo.Web.AhHttpRequest.GetBufferedInputStream()
      at Inedo.Web.Handlers.Api.ApiKeySecuredHandler.LogApiAccess(AhHttpRequest request, Byte[] responseBody, WrappedApiKey apiKey, Int32 responseCode)
      at Inedo.Web.Handlers.Api.ApiKeySecuredHandler.ProcessRequestInternalAsync(AhHttpContext context)
      at Inedo.Web.Handlers.Api.StandardApiHandler.ProcessRequestAsync(AhHttpContext context)
      
      1 Reply Last reply Reply Quote 0
      • gdivisG Offline
        gdivis inedo-engineer
        last edited by

        Hi @gunmaden,

        Thanks for reporting this! I've filed it for investigation as PG-2519.

        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