goharbor/harbor · error
failed to list repo tag
Error message
failed to list repo tag: %s
What it means
The Ali ACR ListRepoTag OpenAPI response reported ListRepoTagIsSuccess=false, i.e. tag listing for the repository completed at HTTP level but failed at business level; the response text is included in the error.
Solutions
- Verify the repository exists and the credentials can read its tags
- Check Aliyun error details in the response text
- Retry the replication in case of transient API failure
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/pkg/reg/adapter/aliacr/openapi.go:298 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/b2482a6a75fae7da.
Report an issue: GitHub.
Appendix: source
Thrown at src/pkg/reg/adapter/aliacr/openapi.go:298
// ListRepoTag returns a list of tags in the specified repository
func (acree *acreeOpenapi) ListRepoTag(repo *repository) ([]string, error) {
var tags []string
tagsReq := cr_ee.CreateListRepoTagRequest()
tagsReq.SetDomain(acree.domain)
tagsReq.InstanceId = acree.instanceID
tagsReq.RepoId = repo.ID
var page = 1
for {
tagsReq.PageNo = requests.NewInteger(page)
tagsResp, err := acree.client.ListRepoTag(tagsReq)
if err != nil {
return nil, err
}
for _, image := range tagsResp.Images {
tags = append(tags, image.Tag)
}
if !tagsResp.ListRepoTagIsSuccess {
return nil, fmt.Errorf("failed to list repo tag: %s", tagsResp.GetHttpContentString())
}
total, err := strconv.Atoi(tagsResp.TotalCount)
if err != nil {
return nil, err
}
if total <= page*tagsResp.PageSize {
break
}
page++
}
return tags, nil
}
// GetAuthorizationToken returns the authorization token for repository.
func (acree *acreeOpenapi) GetAuthorizationToken() (*authToken, error) {
tokenRequest := cr_ee.CreateGetAuthorizationTokenRequest()
// FIXME: use vpc endpoint if vpc is enabled
tokenRequest.SetDomain(acree.domain)View on GitHub (pinned to 7b2fd08cc5)