goharbor/harbor · error · *errors.Error
NOT_FOUND
NOT_FOUND
Error message
tag %s attached to artifact %d not found
What it means
Error "tag %s attached to artifact %d not found" thrown in goharbor/harbor.
Source
Thrown at src/server/v2.0/handler/artifact.go:301
}
artifact, err := a.artCtl.GetByReference(ctx, fmt.Sprintf("%s/%s", params.ProjectName, params.RepositoryName),
params.Reference, &artifact.Option{
WithTag: true,
WithLabel: true,
})
if err != nil {
return a.SendError(ctx, err)
}
var id int64
for _, tag := range artifact.Tags {
if tag.Name == params.TagName {
id = tag.ID
break
}
}
// the tag not found
if id == 0 {
err = errors.New(nil).WithCode(errors.NotFoundCode).WithMessagef(
"tag %s attached to artifact %d not found", params.TagName, artifact.ID)
return a.SendError(ctx, err)
}
if err = a.tagCtl.Delete(ctx, id); err != nil {
return a.SendError(ctx, err)
}
// fire event
notification.AddEvent(ctx, &metadata.DeleteTagEventMetadata{
Ctx: ctx,
Tag: params.TagName,
Labels: artifact.AbstractLabelNames(),
AttachedArtifact: &artifact.Artifact,
})
return operation.NewDeleteTagOK()
}
View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/server/v2.0/handler/artifact.go:301 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/b1b6e22aa61f1369.
Report an issue: GitHub.