Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-33309

JsonParseException: Unexpected character causing failure to refresh repository

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.39.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
      None
    • Environment:
      container version running as rootless container in podman on RHEL 8.5

      Description

      Hi,

      After upgrading to 3.39.0 I see the following warning in the nexus.log for several NuGet proxy repos:

      2022-06-10 10:49:49,212+0000 INFO  [periodic-8-thread-1]  *SYSTEM org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for test-nuget-external changed from READY to AVAILABLE - reason n/a for n/a
      2022-06-10 10:49:49,213+0000 WARN  [periodic-8-thread-1]  *SYSTEM com.sonatype.nexus.repository.nuget.orient.internal.OrientNugetProxyFacet - Exception com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
       at [Source: (org.apache.http.conn.EofSensorInputStream); line: 1, column: 2] checking remote for update, proxy repo test-nuget-external failed to fetch https://www.nuget.org/api/v2/, content not in cache.
      2022-06-10 10:49:49,214+0000 WARN  [periodic-8-thread-1]  *SYSTEM com.sonatype.nexus.repository.nuget.orient.internal.v3.OrientNugetV3ProxyFacetImpl - Failed to refresh service index on test-nuget-external

      I have noticed that our process to load a limited set of packages from NuGet.org into these proxy repositories has been very unstable for the past weeks using 3.38.1.

      Before the upgrade to 3.39.0 I did not see this particular error but perhaps it is related?

       

      What we saw is that sometimes the process would work successfully but other runs would result in errors like:

      error NU1102: Unable to find package Microsoft.NETCore.App.Host.win-x86 with version (= 3.1.25) [E:\bram\import-third-party-packages.csproj]
      E:\bram\project\import-jaeger-0.4.0.csproj : error NU1102: - Found 86 version(s) in external60203 [ Nearest version: 5.0.0-preview.1.20120.5 ] [E:\bram\import-third-party-packages.csproj]

      Regards

       

      Bram

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bram.mertens Bram Mertens
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title