{"record":{"id":"db49acad4759960f","repo":"goharbor/harbor","slug":"failed-to-list-artifacts-of-repository-s-v-db49ac","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/harbor/v2/adapter.go","lineNumber":78,"sourceCode":"\tfor _, project := range projects {\n\t\trepositories, err := a.listRepositories(project, filters)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif len(repositories) == 0 {\n\t\t\tcontinue\n\t\t}\n\n\t\tvar rawResources = make([]*model.Resource, len(repositories))\n\t\trunner := utils.NewLimitedConcurrentRunner(adp.MaxConcurrency)\n\n\t\tfor i, r := range repositories {\n\t\t\tindex := i\n\t\t\trepo := r\n\t\t\trunner.AddTask(func() error {\n\t\t\t\tartifacts, err := a.listArtifacts(repo.Name, filters)\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn fmt.Errorf(\"failed to list artifacts of repository '%s': %v\", repo.Name, err)\n\t\t\t\t}\n\t\t\t\tif len(artifacts) == 0 {\n\t\t\t\t\trawResources[index] = nil\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\n\t\t\t\trawResources[index] = &model.Resource{\n\t\t\t\t\tType:     model.ResourceTypeArtifact,\n\t\t\t\t\tRegistry: a.Registry,\n\t\t\t\t\tMetadata: &model.ResourceMetadata{\n\t\t\t\t\t\tRepository: &model.Repository{\n\t\t\t\t\t\t\tName:     repo.Name,\n\t\t\t\t\t\t\tMetadata: project.Metadata,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tArtifacts: artifacts,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\treturn nil","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/harbor/v2/adapter.go#L60-L96","documentation":"Error \"failed to list artifacts of repository '%s': %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/harbor/v2/adapter.go:78 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"}