{"record":{"id":"8545815aa80a2393","repo":"goharbor/harbor","slug":"bad-request-854581","errorCode":"BAD_REQUEST","errorMessage":"the action is not supported","messagePattern":"the action is not supported","errorType":"validation","errorClass":"BadRequestError","httpStatus":400,"severity":"error","filePath":"src/server/v2.0/handler/jobservice.go","lineNumber":177,"sourceCode":"\tfor _, q := range queues {\n\t\tresult = append(result, &models.JobQueue{\n\t\t\tJobType: q.JobType,\n\t\t\tCount:   q.Count,\n\t\t\tLatency: q.Latency,\n\t\t\tPaused:  q.Paused,\n\t\t})\n\t}\n\treturn result\n}\n\nfunc (j *jobServiceAPI) ActionPendingJobs(ctx context.Context, params jobservice.ActionPendingJobsParams) middleware.Responder {\n\tif err := j.RequireSystemAccess(ctx, rbac.ActionStop, rbac.ResourceJobServiceMonitor); err != nil {\n\t\treturn j.SendError(ctx, err)\n\t}\n\tjobType := strings.ToUpper(params.JobType)\n\taction := strings.ToLower(params.ActionRequest.Action)\n\tif !strings.EqualFold(action, \"stop\") && !strings.EqualFold(action, \"resume\") && !strings.EqualFold(action, \"pause\") {\n\t\treturn j.SendError(ctx, errors.BadRequestError(fmt.Errorf(\"the action is not supported\")))\n\t}\n\tif strings.EqualFold(action, \"stop\") {\n\t\terr := j.jobCtr.StopPendingJobs(ctx, jobType)\n\t\tif err != nil {\n\t\t\treturn j.SendError(ctx, err)\n\t\t}\n\t}\n\tif strings.EqualFold(action, \"pause\") {\n\t\terr := j.jobCtr.PauseJobQueues(ctx, jobType)\n\t\tif err != nil {\n\t\t\treturn j.SendError(ctx, err)\n\t\t}\n\t}\n\tif strings.EqualFold(action, \"resume\") {\n\t\terr := j.jobCtr.ResumeJobQueues(ctx, jobType)\n\t\tif err != nil {\n\t\t\treturn j.SendError(ctx, err)\n\t\t}","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/server/v2.0/handler/jobservice.go#L159-L195","documentation":"Error \"the action is not supported\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/server/v2.0/handler/jobservice.go:177 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"}