goharbor/harbor · error
failed to fetch artifacts: %v
Error message
failed to fetch artifacts: %v
What it means
Error "failed to fetch artifacts: %v" thrown in goharbor/harbor.
Source
Thrown at src/pkg/reg/adapter/githubcr/adapter.go:189
if len(artifacts) == 0 {
return nil
}
rawResources[index] = &model.Resource{
Type: model.ResourceTypeImage,
Registry: a.registry,
Metadata: &model.ResourceMetadata{
Repository: &model.Repository{
Name: repo,
},
Artifacts: artifacts,
},
}
return nil
})
}
if err = runner.Wait(); err != nil {
return nil, fmt.Errorf("failed to fetch artifacts: %v", err)
}
for _, r := range rawResources {
if r != nil {
resources = append(resources, r)
}
}
return resources, nil
}
func (a *adapter) listArtifacts(repository string, filters []*model.Filter) ([]*model.Artifact, error) {
tags, err := a.ListTags(repository)
if err != nil {
return nil, err
}
var artifacts []*model.Artifact
for _, tag := range tags {View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/pkg/reg/adapter/githubcr/adapter.go:189 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of goharbor/harbor@7b2fd08cc5 (2026-08-16).
Data as JSON: /api/errors/ba1bd187a0e2ce9b.
Report an issue: GitHub.