{"record":{"id":"f65d395f947fa587","repo":"windmill-labs/windmill","slug":"not-supported","errorCode":null,"errorMessage":"Not supported","messagePattern":"Not supported","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/windmill-api/src/jobs.rs","lineNumber":7090,"sourceCode":"                Some(job.tag.clone()),\n                None,\n                None,\n                run_query.timeout,\n                None,\n            ),\n            JobKind::Script => {\n                let userdb_authed =\n                    UserDbWithAuthed { db: user_db.clone(), authed: &authed.to_authed_ref() };\n                script_path_to_payload(\n                    job.script_path(),\n                    Some(userdb_authed),\n                    db.clone(),\n                    &w_id,\n                    run_query.skip_preprocessor,\n                )\n                .await?\n            }\n            _ => return Err(anyhow::anyhow!(\"Not supported\").into()),\n        };\n\n    if *CLOUD_HOSTED {\n        tracing::info!(\"workflow_as_code_tracing id {i} \");\n        i += 1;\n    }\n\n    let mut extra = HashMap::new();\n    extra.insert(ENTRYPOINT_OVERRIDE.to_string(), to_raw_value(&entrypoint));\n\n    let args = PushArgs { args: &task.args.unwrap_or_else(HashMap::new), extra: Some(extra) };\n    let scheduled_for = run_query.get_scheduled_for(&db).await?;\n\n    let tag = run_query.tag.clone().or(tag).or(Some(job.tag));\n\n    if *CLOUD_HOSTED {\n        tracing::info!(\"workflow_as_code_tracing id {i} \");\n        i += 1;","sourceCodeStart":7072,"sourceCodeEnd":7108,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/backend/windmill-api/src/jobs.rs#L7072-L7108","documentation":"A match statement in the jobs API dispatches on a kind/enum (in the batch/preview job-creation path) and only implements some arms; anything else falls through to a generic `Err(anyhow!(\"Not supported\"))`. It signals that the requested variant is not implemented on this code path (and in OSS builds may be an Enterprise-only variant).","triggerScenarios":"Submitting a job/preview request (via jobs.rs around line 7090) whose kind matches the `_` arm — e.g. a job kind or preview type that is not one of the explicitly handled variants (such as an EE-only kind on an OSS server, or preview of an unsupported kind).","commonSituations":"Calling the preview/batch endpoint with `kind: \"preview\"` or an EE-only kind against an OSS deployment; a client sending a new/renamed kind the backend doesn't handle; copy-pasted API calls using a kind valid on one endpoint but not this one.","solutions":["Check the `kind`/variant field you send in the request body against the handled arms in jobs.rs and use a supported one.","If the kind requires Enterprise, either use an EE-licensed server or drop that feature.","For preview-like behavior of unsupported kinds, run the underlying script/flow directly and inspect its result.","If you maintain the code, replace the catch-all arm with an explicit list of supported kinds and a descriptive error naming the unsupported variant."],"exampleFix":"// before\n// request: { \"kind\": \"previewscript\", ... } on an unsupported path\n// after\n// request: { \"kind\": \"script\", \"path\": \"u/admin/hello\", ... }","handlingStrategy":"validation","validationCode":"const SUPPORTED = ['script', 'flow', 'rawscript'];\nif (!SUPPORTED.includes(payload.kind)) throw new Error(`kind ${payload.kind} not supported on this endpoint`);","typeGuard":"function isSupportedKind(k) { return ['script', 'flow', 'rawscript'].includes(k); }","tryCatchPattern":"try {\n  await jobsPreview(payload);\n} catch (e) {\n  if (String(e).trim() === 'Not supported') {\n    // fall back to running the underlying script/flow directly\n  } else throw e;\n}","preventionTips":["Match the kind field to the exact arms handled by the endpoint you call","Don't send EE-only kinds to OSS servers","Check server edition before using preview/EE features"],"tags":["jobs","unsupported-kind","backend"],"backgroundTag":"operation-not-supported","analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}