goharbor/harbor · error
failed to fetch artifacts
Error message
failed to fetch artifacts: %w
What it means
Returned by FetchArtifacts after runner.Wait() when any concurrent VolcEngine CR task (tag listing or pattern matching) failed. The runner surfaces the first task error, wrapped with %w for inspection; this marks the whole artifact fetch as failed.
Solutions
- Unwrap the inner per-task error to find the failing repository
- Fix the underlying API or filter-pattern issue
- Re-run the replication job after remediation
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/pkg/reg/adapter/volcenginecr/artifact_registry.go:195 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/308c29e8da4331de.
Report an issue: GitHub.
Appendix: source
Thrown at src/pkg/reg/adapter/volcenginecr/artifact_registry.go:195
log.Debug("filter tags")
if len(tags) > 0 {
rawResources[i] = &model.Resource{
Type: model.ResourceTypeImage,
Registry: a.registry,
Metadata: &model.ResourceMetadata{
Repository: &model.Repository{
Name: nsRepo,
},
Vtags: tags,
},
}
}
return nil
})
}
if err = runner.Wait(); err != nil {
return nil, fmt.Errorf("failed to fetch artifacts: %w", err)
}
for _, res := range rawResources {
if res != nil {
resources = append(resources, res)
}
}
return resources, nil
}
View on GitHub (pinned to 7b2fd08cc5)