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!

    Nuget connector stuck in failed state ("'0x00' is an invalid start of a property name")

    Scheduled Pinned Locked Moved Support
    5 Posts 3 Posters 22 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.
    • M Offline
      mayorovp_3701
      last edited by mayorovp_3701

      Configuration: nuget feed with 2 nuget connectors. First connector is nuget.org connector, second connector is self-connector to another feed.

      Periodically, all external packages become unavailable, and web interface shows warning:

      An error occurred while querying connectors for this feed.
      
      '0x00' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
      

      Once this problem occurs, it persists until proget server is restarted. Once server is restarted, the problem disappears until it happens again.

      That all looks like some cached network error, but I have no clue what URL was requested and what response was.

      Diagnostic Center contains no events for nuget.org connector.
      System logs contains no errors too.

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

        Hi @mayorovp_3701,

        That's a really strange error; it's basically saying that, somehow, a 0x0 character found its way into some JSON returned by the API. This character is invisible, and you'd need to use a kind of hex editor or developer tool to even see it.

        I guess, in theory it could be inserted by some intermediate device (firewall, gateway, etc), but who knows at this point. I can't imagine how that could happen on either NuGet or ProGet, but that's the first place to start looking.

        I suspect the server restart is unrelated; that certainly wouldn't cause a random 0x0 unless there's something really broken with the computer.

        From here, you'll want to keep isolating the issue, and try to figure out which connector is "bad"

        • If it's NuGet.org -- the issue is most certainly a network/gateway that's doing that.
        • If it's ProGet -- it's likely some strange bug, where 0x0 got inserted to the Database for a connector or feed or something. We saw that during some migrations, but it's realy hard to track down.

        I would just keep experimenting. If it's related to a reboot, just stop/start the service. That should be the same.

        Thanks,
        Alana

        1 Reply Last reply Reply Quote 0
        • M Offline
          mayorovp_3701
          last edited by mayorovp_3701

          @atripp Actually zero byte in position 1 looks like attempt to read UTF16-LE-encoded json as UTF8.

          I would just keep experimenting.

          Proget refuses to tell me what it is trying to do, I even cannot find this error in logs. This error is visible in feed UI only. What kind of experiments can I do next time?

          If it's related to a reboot, just stop/start the service.

          Of course, by "server" I mean "ASP.NET Core server process", not "virtual machine".

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

            Hi @mayorovp_3701

            Actually zero byte in position 1 looks like attempt to read UTF16-LE-encoded json as UTF8

            Oh that's a great observation! Yeah that sounds like a reasonable explanation. But still... how could that even be possible?

            It's not like ProGet is going to randomly swap an encoding like that, and it's not like NuGet is going to store .json files incorrectly.

            As for experimentation, next time it happens:

            • remove one of the connectors from the feed to which one
            • navigate to the JSON endpoints of the connector in question, to see if you see the bad JSON
            • try to identify a pattern of behavior that causes this
            • watch for HTTP access logs to see if you can find the exact URL that's being accessed at the time of the connector failure (assuming it's a self-connector)
            • be prepared to attach a MITM proxy to ProGet (Admin > Proxy)

            Thanks,
            Alana

            1 Reply Last reply Reply Quote 0
            • S Offline
              sigurd.hansen_7559
              last edited by

              Got this on a NPM feed, which has a connector to *npm-registry.npmjs.org. Recently upgraded to 25.23.11

              An error occurred processing a POST request to http://packagemanager.REDACTED/npm/NPM-Source/-/npm/v1/security/advisories/bulk: '0x00' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
              
              System.Text.Json.JsonReaderException: '0x00' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
                 at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
                 at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
                 at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
                 at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedArrayPoolBytes, PooledByteBufferWriter extraPooledByteBufferWriter)
                 at System.Text.Json.JsonDocument.Parse(Stream utf8Json, JsonDocumentOptions options)
                 at Inedo.ProGet.WebApplication.FeedEndpoints.Npm.NpmAuditHandler.HandleBulkAdvisory(AhHttpContext context, NpmFeed feed)
                 at Inedo.ProGet.WebApplication.FeedEndpoints.Npm.NpmAuditHandler.TryProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, NpmFeed feed, String relativeUrl)
                 at Inedo.ProGet.WebApplication.FeedEndpoints.Npm.NpmHandler.ProcessRequestAsync(AhHttpContext context, WebApiContext apiContext, NpmFeed feed, String relativeUrl)
                 at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.FeedRequestHandler.ProcessRequestAsync(AhHttpContext context)
              
              ::Web Error on 19.03.2026 19:52:44::
              
              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