{"record":{"id":"2daf3eb730a0fa77","repo":"goharbor/harbor","slug":"failed-to-list-artifacts-of-repository-s-v-2daf3e","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/jfrog/adapter.go","lineNumber":180,"sourceCode":"func (a *adapter) FetchArtifacts(filters []*model.Filter) ([]*model.Resource, error) {\n\trepositories, err := a.listRepositories(filters)\n\tif err != nil {\n\t\treturn nil, err\n\t}\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.Name, filters)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"failed to list artifacts of repository %s: %v\", repo.Name, 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.Name,\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":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/jfrog/adapter.go#L162-L198","documentation":"Error \"failed to list artifacts of repository %s: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/jfrog/adapter.go:180 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"}