goharbor/harbor · error · errors.Error
NOT_FOUND
NOT_FOUND
Error message
registry 0 not found
What it means
Error "registry 0 not found" thrown in goharbor/harbor.
Source
Thrown at src/server/v2.0/handler/registry.go:137
WithPayload(regs)
}
func (r *registryAPI) DeleteRegistry(ctx context.Context, params operation.DeleteRegistryParams) middleware.Responder {
if err := r.RequireSystemAccess(ctx, rbac.ActionDelete, rbac.ResourceRegistry); err != nil {
return r.SendError(ctx, err)
}
if err := r.ctl.Delete(ctx, params.ID); err != nil {
return r.SendError(ctx, err)
}
return operation.NewDeleteRegistryOK()
}
func (r *registryAPI) UpdateRegistry(ctx context.Context, params operation.UpdateRegistryParams) middleware.Responder {
if err := r.RequireSystemAccess(ctx, rbac.ActionUpdate, rbac.ResourceRegistry); err != nil {
return r.SendError(ctx, err)
}
if params.ID == 0 {
return r.SendError(ctx, errors.New(nil).WithCode(errors.NotFoundCode).WithMessage("registry 0 not found"))
}
registry, err := r.ctl.Get(ctx, params.ID)
if err != nil {
return r.SendError(ctx, err)
}
storedURL := registry.URL
if params.Registry != nil {
if params.Registry.Name != nil {
registry.Name = *params.Registry.Name
}
if params.Registry.Description != nil {
registry.Description = *params.Registry.Description
}
if params.Registry.URL != nil {
registry.URL = *params.Registry.URL
}
if params.Registry.Insecure != nil {
registry.Insecure = *params.Registry.InsecureView on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/server/v2.0/handler/registry.go:137 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/15df5ecc4934b38d.
Report an issue: GitHub.