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



  • 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!


  • inedo-engineer

    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



  • 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"
    }
    

  • inedo-engineer

    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



  • Thank you so much!


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation