go-client icon indicating copy to clipboard operation
go-client copied to clipboard

Can't delete artifact tag

Open vmasyagin opened this issue 3 years ago • 1 comments

Good afternoon. Please suggest what is wrong with my request. Execute command in code _, err = cs.V2().Artifact.DeleteTag(context.TODO(), &artifact.DeleteTagParams{ Reference: reference, TagName: reference, ProjectName: *r.Project, RepositoryName: repositoryName, }) and i get an error [DELETE /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/tags/{tag_name}][401] deleteTagUnauthorized &{Errors:[0xc000236500]}

Methods for getting tags work fine with the same authorization data. In Harbor UI, I can delete the tag with these authorization data

Version: github.com/goharbor/go-client v0.25.0

vmasyagin avatar Nov 24 '22 12:11 vmasyagin

I met the same problem

jeyrce avatar Feb 09 '23 06:02 jeyrce