{"record":{"id":"f85451a28aa01127","repo":"goharbor/harbor","slug":"failed-to-list-artifacts-of-repository-s-v-f85451","errorCode":null,"errorMessage":"failed to list artifacts of repository %s: %v","messagePattern":"failed to list artifacts of repository (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/githubcr/adapter.go","lineNumber":169,"sourceCode":"\t} else {\n\t\terr = errors.New(\"only support specific repository name\")\n\t\treturn\n\t}\n\n\tif len(repositories) == 0 {\n\t\treturn nil, nil\n\t}\n\n\tvar rawResources = make([]*model.Resource, len(repositories))\n\trunner := utils.NewLimitedConcurrentRunner(adp.MaxConcurrency)\n\n\tfor i, r := range repositories {\n\t\tindex := i\n\t\trepo := r\n\t\trunner.AddTask(func() error {\n\t\t\tartifacts, err := a.listArtifacts(repo, filters)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to list artifacts of repository %s: %v\", repo, err)\n\t\t\t}\n\t\t\tif len(artifacts) == 0 {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\trawResources[index] = &model.Resource{\n\t\t\t\tType:     model.ResourceTypeImage,\n\t\t\t\tRegistry: a.registry,\n\t\t\t\tMetadata: &model.ResourceMetadata{\n\t\t\t\t\tRepository: &model.Repository{\n\t\t\t\t\t\tName: repo,\n\t\t\t\t\t},\n\t\t\t\t\tArtifacts: artifacts,\n\t\t\t\t},\n\t\t\t}\n\n\t\t\treturn nil\n\t\t})\n\t}","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/githubcr/adapter.go#L151-L187","documentation":"Error \"failed to list artifacts of repository %s: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/githubcr/adapter.go:169 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"}