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!

    (500) Server Error When editing description of a Universal Package

    Scheduled Pinned Locked Moved Support
    5 Posts 2 Posters 23 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.
    • D Offline
      daniel.pardo_5658
      last edited by

      Hello,

      I am quite new to ProGet so it may be an error on my side, but I would apreciate any help regarding this topic. For context, i am running ProGet 24.0.29 in a docker container in a Ubuntu 24.04 server. No reverse proxy since it is running in my private network.

      So the problem is pretty self explanatory, when I try to edit the description of a universal package from the web UI I get the following error:

      (500) Server Error
      The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
      

      The description box is obviously not empty and every field in the "Edit package" windows is filled. The error log shows the following:

      An error occurred in the web application: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
      
      URL: http://10.1.0.186/universal-packages/edit-package?feedId=38&pUrl=pkg%3Aupack%2FTOTEM_SDK%401.3.1
      Referrer: http://10.1.0.186/universal-packages/edit-package?feedId=38&pUrl=pkg%3Aupack%2FTOTEM_SDK%401.3.1
      User: (unknown)
      User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
      Stack trace:    at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
         at System.Text.Json.Utf8JsonReader.Read()
         at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
         at System.Text.Json.JsonDocument.ParseUnrented(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, JsonTokenType tokenType)
         at System.Text.Json.JsonDocument.ParseValue(ReadOnlyMemory`1 json, JsonDocumentOptions options)
         at System.Text.Json.Nodes.JsonNode.Parse(String json, Nullable`1 nodeOptions, JsonDocumentOptions documentOptions)
         at Inedo.ProGet.WebApplication.Pages.Universal.Packages.EditUniversalPackagePage.<>c__DisplayClass12_0.<<CreateChildControlsAsync>b__1>d.MoveNext() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E536092\Src\ProGet.WebApplication\Pages\Universal\Packages\EditUniversalPackagePage.cs:line 163
      --- End of stack trace from previous location ---
         at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync()
         at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(AhHttpContext context)
         at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
      
      ::Web Error on 03/21/2025 10:00:37::
      

      Does anyone have any theories of what may be happening?

      Thanks in advance guys!

      Daniel.

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @daniel.pardo_5658
        last edited by

        Hi @daniel-pardo_5658 ,

        Unfortunately I'm not able to reproduce the error; I think it has something to do with your upack.json file. Can you share that?

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 1
        • D Offline
          daniel.pardo_5658
          last edited by

          It happens when trying to edit any package in any Universal Package feed, but for example this particular case's upack.json is:

          {
            "name": "VHF_FW",
            "version": "2.1.0",
            "description": "",
            "createdDate": "2025-03-12 10:13:49Z",
            "createdUsing": "upack/3.1.4",
            "createdBy": "daniel"
          }
          

          Daniel.

          atrippA 1 Reply Last reply Reply Quote 0
          • atrippA Offline
            atripp inedo-engineer @daniel.pardo_5658
            last edited by

            Thanks @daniel-pardo_5658 , I was able to reproduce it.

            It seems to work when you have additional metadata fields. Anyway we'll get it fixed via PG-2935 in the next maintenance release. AS a work-around, you can just download the package, edit the upack.json, and reupload it.

            Cheers,
            Alana

            1 Reply Last reply Reply Quote 1
            • D Offline
              daniel.pardo_5658
              last edited by

              Thank you so much!

              Daniel.

              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