goharbor/harbor · error
failed to fetch artifacts
Error message
failed to fetch artifacts: %v
What it means
Returned by FetchArtifacts after runner.Wait() when any concurrent artifact-listing task failed. The LimitedConcurrentRunner aggregates the first task error; this wrapper surfaces it as the overall fetch failure. The root cause is in the per-repository task, typically a GitHub API or filtering failure.
Solutions
- Inspect the inner error (a per-repository failure wrapped with the repo name) to find the failing repository
- Address the underlying GitHub API error (rate limit, auth, connectivity)
- Re-run the replication job once the per-repo issue is fixed
Defensive patterns
Strategy: retry
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.
Appendix: 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)