{"record":{"id":"96393ae6243bba50","repo":"goharbor/harbor","slug":"not-found-96393a","errorCode":"NOT_FOUND","errorMessage":"project id %d, task id %d not found","messagePattern":"project id (.+?), task id (.+?) not found","errorType":"http","errorClass":"NotFoundError","httpStatus":404,"severity":"error","filePath":"src/server/v2.0/handler/preheat.go","lineNumber":825,"sourceCode":"\tif err := api.RequireProjectAccess(ctx, params.ProjectName, rbac.ActionRead, rbac.ResourcePreatPolicy); err != nil {\n\t\treturn api.SendError(ctx, err)\n\t}\n\n\tif err := api.requireTaskInProject(ctx, params.ProjectName, params.PreheatPolicyName, params.ExecutionID, params.TaskID); err != nil {\n\t\treturn api.SendError(ctx, err)\n\t}\n\n\tl, err := api.taskCtl.GetLog(ctx, params.TaskID)\n\tif err != nil {\n\t\treturn api.SendError(ctx, err)\n\t}\n\n\treturn operation.NewGetPreheatLogOK().WithPayload(string(l))\n}\n\nfunc (api *preheatAPI) requireTaskInProject(ctx context.Context, projectNameOrID any, policyName string, executionID, taskID int64) error {\n\tprojectID, err := getProjectID(ctx, projectNameOrID)\n\tnotFoundErr := fmt.Errorf(\"project id %d, task id %d not found\", projectID, taskID)\n\tif err != nil {\n\t\treturn err\n\t}\n\t// require execution before require task\n\tif err := api.requireExecutionInProject(ctx, projectID, policyName, executionID); err != nil {\n\t\treturn err\n\t}\n\n\ttask, err := api.taskCtl.Get(ctx, taskID)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif task != nil && task.ExecutionID == executionID {\n\t\treturn nil\n\t}\n\n\treturn errors.NotFoundError(notFoundErr)","sourceCodeStart":807,"sourceCodeEnd":843,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/v2.0/handler/preheat.go#L807-L843","documentation":"Error \"project id %d, task id %d not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/v2.0/handler/preheat.go:825 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"}