{"record":{"id":"15df5ecc4934b38d","repo":"goharbor/harbor","slug":"not-found-15df5e","errorCode":"NOT_FOUND","errorMessage":"registry 0 not found","messagePattern":"registry 0 not found","errorType":"http","errorClass":"errors.Error","httpStatus":404,"severity":"error","filePath":"src/server/v2.0/handler/registry.go","lineNumber":137,"sourceCode":"\t\tWithPayload(regs)\n}\n\nfunc (r *registryAPI) DeleteRegistry(ctx context.Context, params operation.DeleteRegistryParams) middleware.Responder {\n\tif err := r.RequireSystemAccess(ctx, rbac.ActionDelete, rbac.ResourceRegistry); err != nil {\n\t\treturn r.SendError(ctx, err)\n\t}\n\tif err := r.ctl.Delete(ctx, params.ID); err != nil {\n\t\treturn r.SendError(ctx, err)\n\t}\n\treturn operation.NewDeleteRegistryOK()\n}\n\nfunc (r *registryAPI) UpdateRegistry(ctx context.Context, params operation.UpdateRegistryParams) middleware.Responder {\n\tif err := r.RequireSystemAccess(ctx, rbac.ActionUpdate, rbac.ResourceRegistry); err != nil {\n\t\treturn r.SendError(ctx, err)\n\t}\n\tif params.ID == 0 {\n\t\treturn r.SendError(ctx, errors.New(nil).WithCode(errors.NotFoundCode).WithMessage(\"registry 0 not found\"))\n\t}\n\tregistry, err := r.ctl.Get(ctx, params.ID)\n\tif err != nil {\n\t\treturn r.SendError(ctx, err)\n\t}\n\tstoredURL := registry.URL\n\tif params.Registry != nil {\n\t\tif params.Registry.Name != nil {\n\t\t\tregistry.Name = *params.Registry.Name\n\t\t}\n\t\tif params.Registry.Description != nil {\n\t\t\tregistry.Description = *params.Registry.Description\n\t\t}\n\t\tif params.Registry.URL != nil {\n\t\t\tregistry.URL = *params.Registry.URL\n\t\t}\n\t\tif params.Registry.Insecure != nil {\n\t\t\tregistry.Insecure = *params.Registry.Insecure","sourceCodeStart":119,"sourceCodeEnd":155,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/v2.0/handler/registry.go#L119-L155","documentation":"Error \"registry 0 not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/v2.0/handler/registry.go:137 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"}