goharbor/harbor · error · NotFoundError
NOT_FOUND
NOT_FOUND
Error message
project id:%d, webhook policy id: %d not found
What it means
Error "project id:%d, webhook policy id: %d not found" thrown in goharbor/harbor.
Source
Thrown at src/server/v2.0/handler/webhook.go:72
}
func (n *webhookAPI) Prepare(_ context.Context, _ string, _ any) middleware.Responder {
return nil
}
func (n *webhookAPI) requirePolicyInProject(ctx context.Context, projectIDOrName any, policyID int64) error {
projectID, err := getProjectID(ctx, projectIDOrName)
if err != nil {
return err
}
l, err := n.webhookCtl.GetPolicy(ctx, policyID)
if err != nil {
return err
}
if projectID != l.ProjectID {
return errors.NotFoundError(fmt.Errorf("project id:%d, webhook policy id: %d not found", projectID, policyID))
}
return nil
}
func (n *webhookAPI) requireExecutionInPolicy(ctx context.Context, execID, policyID int64) error {
exec, err := n.execCtl.Get(ctx, execID)
if err != nil {
return err
}
if exec.VendorID == policyID && (exec.VendorType == job.WebhookJobVendorType || exec.VendorType == job.SlackJobVendorType) {
return nil
}
return errors.NotFoundError(fmt.Errorf("execution %d not found in policy %d", execID, policyID))
}
func (n *webhookAPI) requireTaskInExecution(ctx context.Context, taskID, execID int64) error {View on GitHub (pinned to 7b2fd08cc5)
When it happens
Trigger: Thrown at src/server/v2.0/handler/webhook.go:72 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/8b35ec3f91704970.
Report an issue: GitHub.