{"record":{"id":"e0f703d18821ba6b","repo":"windmill-labs/windmill","slug":"job-id-is-required","errorCode":null,"errorMessage":"Job ID is required","messagePattern":"Job ID is required","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/src/commands/app/dev.ts","lineNumber":1894,"sourceCode":"    );\n  }\n\n  const uuid = await wmill.executeComponent({\n    workspace,\n    path: appPath,\n    requestBody,\n  });\n\n  return uuid;\n}\n\nconst ITERATIONS_BEFORE_SLOW_REFRESH = 10;\nconst ITERATIONS_BEFORE_SUPER_SLOW_REFRESH = 100;\nconst QUEUE_LOG_INTERVAL_MS = 5000;\n\nasync function waitForJob(workspace: string, jobId: string): Promise<any> {\n  if (!jobId) {\n    throw new Error(\"Job ID is required\");\n  }\n\n  let syncIteration = 0;\n  let lastQueueLogAt = Date.now();\n\n  return new Promise((resolve, reject) => {\n    async function checkJob() {\n      try {\n        const maybeJob = await wmill.getCompletedJobResultMaybe({\n          workspace,\n          id: jobId,\n          getStarted: false,\n        });\n\n        if (maybeJob.completed) {\n          if (\n            !maybeJob.success &&\n            typeof maybeJob.result === \"object\" &&","sourceCodeStart":1876,"sourceCodeEnd":1912,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/app/dev.ts#L1876-L1912","documentation":"Cheap argument guard at the top of waitForJob in the dev server: the jobId parameter is falsy (empty string, null, undefined). The caller was about to poll /jobs_u completion for a job that was never created — typically because the run call that should have produced the id failed silently or returned nothing, and the falsy id propagated here. The faulting input is whatever upstream step yielded no job id.","triggerScenarios":"Thrown at cli/src/commands/app/dev.ts:1894 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Trace the caller: check why executeComponent / the run call returned no job id (auth failure, validation error swallowed by a catch)","Inspect the dev server logs above this error for the failed run attempt and address that failure","If it recurs on a specific component, verify that component is runnable (script/flow reference valid) in the app definition"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}