{"record":{"id":"aa67a4205478400c","repo":"goharbor/harbor","slug":"not-found-aa67a4","errorCode":"NOT_FOUND","errorMessage":"purge job with execution ID: %d taskLog is not found","messagePattern":"purge job with execution ID: (.+?) taskLog is not found","errorType":"http","errorClass":"errors.Error","httpStatus":404,"severity":"error","filePath":"src/server/v2.0/handler/purge.go","lineNumber":249,"sourceCode":"\t}\n\n\treturn purge.NewGetPurgeJobOK().WithPayload(res.ToSwagger())\n}\n\nfunc (p *purgeAPI) GetPurgeJobLog(ctx context.Context, params purge.GetPurgeJobLogParams) middleware.Responder {\n\tif err := p.RequireSystemAccess(ctx, rbac.ActionRead, rbac.ResourcePurgeAuditLog); err != nil {\n\t\treturn p.SendError(ctx, err)\n\t}\n\ttasks, err := p.taskCtl.List(ctx, q.New(q.KeyWords{\n\t\t\"ExecutionID\": params.PurgeID,\n\t\t\"VendorType\":  job.PurgeAuditVendorType,\n\t}))\n\tif err != nil {\n\t\treturn p.SendError(ctx, err)\n\t}\n\tif len(tasks) == 0 {\n\t\treturn p.SendError(ctx,\n\t\t\terrors.New(nil).WithCode(errors.NotFoundCode).\n\t\t\t\tWithMessagef(\"purge job with execution ID: %d taskLog is not found\", params.PurgeID))\n\t}\n\ttaskLog, err := p.taskCtl.GetLog(ctx, tasks[0].ID)\n\tif err != nil {\n\t\treturn p.SendError(ctx, err)\n\t}\n\treturn purge.NewGetPurgeJobLogOK().WithPayload(string(taskLog))\n}\n\nfunc (p *purgeAPI) GetPurgeSchedule(ctx context.Context, _ purge.GetPurgeScheduleParams) middleware.Responder {\n\tif err := p.RequireSystemAccess(ctx, rbac.ActionRead, rbac.ResourcePurgeAuditLog); err != nil {\n\t\treturn p.SendError(ctx, err)\n\t}\n\tsch, err := p.schedulerCtl.Get(ctx, job.PurgeAuditVendorType)\n\tif errors.IsNotFoundErr(err) {\n\t\treturn purge.NewGetPurgeScheduleOK()\n\t}\n\tif err != nil {","sourceCodeStart":231,"sourceCodeEnd":267,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/v2.0/handler/purge.go#L231-L267","documentation":"Error \"purge job with execution ID: %d taskLog is not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/v2.0/handler/purge.go:249 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"}