{"record":{"id":"4880066e8a4d8d91","repo":"goharbor/harbor","slug":"unsupported-repository-kind-s","errorCode":null,"errorMessage":"unsupported repository kind: %s","messagePattern":"unsupported repository kind: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/retention/dep/client.go","lineNumber":173,"sourceCode":"\t\t\t\tlabels := make([]string, 0)\n\t\t\t\tfor _, label := range chart.Labels {\n\t\t\t\t\tlabels = append(labels, label.Name)\n\t\t\t\t}\n\t\t\t\tcandidate := &art.Candidate{\n\t\t\t\t\tKind:         art.Chart,\n\t\t\t\t\tNamespace:    repository.Namespace,\n\t\t\t\t\tRepository:   repository.Name,\n\t\t\t\t\tTag:          chart.Name,\n\t\t\t\t\tLabels:       labels,\n\t\t\t\t\tCreationTime: chart.Created.Unix(),\n\t\t\t\t\tPushedTime:   ,\n\t\t\t\t\tPulledTime:   ,\n\t\t\t\t}\n\t\t\t\tcandidates = append(candidates, candidate)\n\t\t\t}\n\t*/\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"unsupported repository kind: %s\", repository.Kind)\n\t}\n\treturn candidates, nil\n}\n\n// DeleteRepository deletes the specified repository\nfunc (bc *basicClient) DeleteRepository(repo *selector.Repository) error {\n\tif repo == nil {\n\t\treturn errors.New(\"repository is nil\")\n\t}\n\tswitch repo.Kind {\n\tcase selector.Image:\n\t\treturn bc.coreClient.DeleteArtifactRepository(repo.Namespace, repo.Name)\n\t/*\n\t\tcase art.Chart:\n\t\t\treturn bc.coreClient.DeleteChartRepository(repo.Namespace, repo.Name)\n\t*/\n\tdefault:\n\t\treturn fmt.Errorf(\"unsupported repository kind: %s\", repo.Kind)","sourceCodeStart":155,"sourceCodeEnd":191,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/retention/dep/client.go#L155-L191","documentation":"Error \"unsupported repository kind: %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/retention/dep/client.go:173 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}