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

error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field ChartVersion.entries.appVersion of type string

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.38.1
    • Fix Version/s: None
    • Component/s: helm, Repository
    • Labels:

      Description

      I stuck with bug in Nexus OSS CE OSS 3.38.1-01

      There is problem with adding helm artifacts with appVersion as git short commit(for my situation).

      STR:

      1. Create helm hosted repo naming helm-test
      2. helm repo add helm-test https://nexus.mydomain.com/repository/helm-test/
      3. helm create testchart
      4. helm package testchart/ --app-version 57733e8
      5. curl -vf --retry 5 --retry-delay 3 -u user:password --upload-file testchart-0.1.0.tgz https://nexus.mydomain.com/repository/helm-test/
      6. helm repo update

      Got error:

      Hang tight while we grab the latest from your chart repositories...
      ...Successfully got an update from the "elastic" chart repository
       ...Unable to get an update from the "helm-test" chart repository (https://nexus.mydomain.com/repository/helm-test/): error unmarshaling JSON: while decoding JSON: json: cannot unmarshal number into Go struct field ChartVersion.entries.appVersion of type string
       ...Successfully got an update from the "hashicorp" chart repository...
       Update Complete. ⎈Happy Helming!⎈

       

       

      The repository is broken.

      After removing the artifact, the repository works fine again.

       

      I consider it's bug related to this comment on github helm issue:

      https://github.com/helm/helm/issues/6849#issuecomment-549451440
       
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kostiantyn Kostiantyn
            Last Updated By:
            Matthew Piggott Matthew Piggott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title