goharbor/harbor · error · *errors.Error
METHOD_NOT_ALLOWED
METHOD_NOT_ALLOWED
Error message
the operation isn't supported for a proxy cache project
What it means
Error "the operation isn't supported for a proxy cache project" thrown in goharbor/harbor.
Source
Thrown at src/server/v2.0/handler/artifact.go:274
// fire event
notification.AddEvent(ctx, &metadata.CreateTagEventMetadata{
Ctx: ctx,
Tag: tag.Name,
Labels: art.AbstractLabelNames(),
AttachedArtifact: &art.Artifact,
})
// as we provide no API for get the single tag, ignore setting the location header here
return operation.NewCreateTagCreated()
}
func (a *artifactAPI) requireNonProxyCacheProject(ctx context.Context, name string) error {
pro, err := a.proCtl.GetByName(ctx, name)
if err != nil {
return err
}
if pro.IsProxy() {
return errors.New(nil).WithCode(errors.MethodNotAllowedCode).
WithMessagef("the operation isn't supported for a proxy cache project")
}
return nil
}
func (a *artifactAPI) DeleteTag(ctx context.Context, params operation.DeleteTagParams) middleware.Responder {
if err := a.RequireProjectAccess(ctx, params.ProjectName, rbac.ActionDelete, rbac.ResourceTag); err != nil {
return a.SendError(ctx, err)
}
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 int64View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/server/v2.0/handler/artifact.go:274 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/eb6b2c73af2b15a2.
Report an issue: GitHub.