windmill-labs/windmill · error

Job ID is required

Error message

Job ID is required

What it means

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.

Source

Thrown at cli/src/commands/app/dev.ts:1894

    );
  }

  const uuid = await wmill.executeComponent({
    workspace,
    path: appPath,
    requestBody,
  });

  return uuid;
}

const ITERATIONS_BEFORE_SLOW_REFRESH = 10;
const ITERATIONS_BEFORE_SUPER_SLOW_REFRESH = 100;
const QUEUE_LOG_INTERVAL_MS = 5000;

async function waitForJob(workspace: string, jobId: string): Promise<any> {
  if (!jobId) {
    throw new Error("Job ID is required");
  }

  let syncIteration = 0;
  let lastQueueLogAt = Date.now();

  return new Promise((resolve, reject) => {
    async function checkJob() {
      try {
        const maybeJob = await wmill.getCompletedJobResultMaybe({
          workspace,
          id: jobId,
          getStarted: false,
        });

        if (maybeJob.completed) {
          if (
            !maybeJob.success &&
            typeof maybeJob.result === "object" &&

View on GitHub (pinned to e474e8803c)

Solutions

  1. Trace the caller: check why executeComponent / the run call returned no job id (auth failure, validation error swallowed by a catch)
  2. Inspect the dev server logs above this error for the failed run attempt and address that failure
  3. If it recurs on a specific component, verify that component is runnable (script/flow reference valid) in the app definition
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at cli/src/commands/app/dev.ts:1894 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of windmill-labs/windmill@e474e8803c (2026-09-03). Data as JSON: /api/errors/e0f703d18821ba6b. Report an issue: GitHub.