{"record":{"id":"a408d47586caa567","repo":"goharbor/harbor","slug":"failed-to-fetch-artifacts-v-a408d4","errorCode":null,"errorMessage":"failed to fetch artifacts: %v","messagePattern":"failed to fetch artifacts: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/tencentcr/artifact_registry.go","lineNumber":138,"sourceCode":"\n\t\t\tif len(filteredImages) > 0 {\n\t\t\t\trawResources[index] = &model.Resource{\n\t\t\t\t\tType:     model.ResourceTypeImage,\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},\n\t\t\t\t\t\tVtags: filteredImages,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn nil\n\t\t})\n\t}\n\tif err = runner.Wait(); err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to fetch artifacts: %v\", err)\n\t}\n\n\tfor _, res := range rawResources {\n\t\tif res != nil {\n\t\t\tresources = append(resources, res)\n\t\t}\n\t}\n\tlog.Debugf(\"[tencent-tcr.FetchArtifacts] resources.size=%d\", len(resources))\n\n\treturn\n}\n\nfunc (a *adapter) listCandidateNamespaces(namespacePattern string) (namespaces []string, err error) {\n\t// filter namespaces\n\tif len(namespacePattern) > 0 {\n\t\tif nms, ok := util.IsSpecificPathComponent(namespacePattern); ok {\n\t\t\t// Check is exist\n\t\t\tvar exist bool","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/tencentcr/artifact_registry.go#L120-L156","documentation":"Error \"failed to fetch artifacts: %v\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/tencentcr/artifact_registry.go:138 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"}