{"record":{"id":"b2482a6a75fae7da","repo":"goharbor/harbor","slug":"failed-to-list-repo-tag-s","errorCode":null,"errorMessage":"failed to list repo tag: %s","messagePattern":"failed to list repo tag: (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/pkg/reg/adapter/aliacr/openapi.go","lineNumber":298,"sourceCode":"// ListRepoTag returns a list of tags in the specified repository\nfunc (acree *acreeOpenapi) ListRepoTag(repo *repository) ([]string, error) {\n\tvar tags []string\n\ttagsReq := cr_ee.CreateListRepoTagRequest()\n\ttagsReq.SetDomain(acree.domain)\n\ttagsReq.InstanceId = acree.instanceID\n\ttagsReq.RepoId = repo.ID\n\tvar page = 1\n\tfor {\n\t\ttagsReq.PageNo = requests.NewInteger(page)\n\t\ttagsResp, err := acree.client.ListRepoTag(tagsReq)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tfor _, image := range tagsResp.Images {\n\t\t\ttags = append(tags, image.Tag)\n\t\t}\n\t\tif !tagsResp.ListRepoTagIsSuccess {\n\t\t\treturn nil, fmt.Errorf(\"failed to list repo tag: %s\", tagsResp.GetHttpContentString())\n\t\t}\n\t\ttotal, err := strconv.Atoi(tagsResp.TotalCount)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tif total <= page*tagsResp.PageSize {\n\t\t\tbreak\n\t\t}\n\t\tpage++\n\t}\n\treturn tags, nil\n}\n\n// GetAuthorizationToken returns the authorization token for repository.\nfunc (acree *acreeOpenapi) GetAuthorizationToken() (*authToken, error) {\n\ttokenRequest := cr_ee.CreateGetAuthorizationTokenRequest()\n\t// FIXME: use vpc endpoint if vpc is enabled\n\ttokenRequest.SetDomain(acree.domain)","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/pkg/reg/adapter/aliacr/openapi.go#L280-L316","documentation":"Error \"failed to list repo tag: %s\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/pkg/reg/adapter/aliacr/openapi.go:298 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}