goharbor/harbor · error
failed to list repo tag: %s
Error message
failed to list repo tag: %s
What it means
Error "failed to list repo tag: %s" thrown in goharbor/harbor.
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)
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.