windmill-labs/windmill · error · Error

Invalid trigger kind: ${triggerKind}

Error message

Invalid trigger kind: ${triggerKind}

What it means

Thrown by trigger push when the trigger kind inferred from the local file name suffix (e.g. something.kafka_trigger.yaml -> kafka via extractTriggerKindFromPath) is not a recognized kind per checkIfValidTrigger. Fires when the file is named with an unknown or missing *_trigger.yaml kind suffix, so the input at fault is the local file's naming, not remote state.

Source

Thrown at cli/src/commands/trigger/trigger.ts:639

async function push(opts: GlobalOptions, filePath: string, remotePath: string) {
  const workspace = await resolveWorkspace(opts);
  await requireLogin(opts);

  if (!validatePath(remotePath)) {
    return;
  }

  const fstat = await stat(filePath);
  if (!fstat.isFile()) {
    throw new Error("file path must refer to a file.");
  }

  console.log(colors.bold.yellow("Pushing trigger..."));

  const triggerKind = await extractTriggerKindFromPath(filePath);
  if (!checkIfValidTrigger(triggerKind)) {
    throw new Error("Invalid trigger kind: " + triggerKind);
  }
  await pushTrigger(
    triggerKind,
    workspace.workspaceId,
    remotePath,
    undefined,
    parseFromFile(filePath)
  );
  console.log(colors.bold.underline.green("Trigger pushed"));
}

const command = new Command()
  .description("trigger related commands")
  .option("--json", "Output as JSON (for piping to jq)")
  .action(list as any)
  .command("list", "list all triggers")
  .option("--json", "Output as JSON (for piping to jq)")
  .action(list as any)

View on GitHub (pinned to e474e8803c)

Solutions

  1. Name the file <path>.<kind>_trigger.yaml with a supported kind (http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email).
  2. Use `wmill trigger get`/docs to check supported kinds.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at cli/src/commands/trigger/trigger.ts:639 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/60778c28168b0b5f. Report an issue: GitHub.