{"record":{"id":"60778c28168b0b5f","repo":"windmill-labs/windmill","slug":"invalid-trigger-kind-triggerkind","errorCode":null,"errorMessage":"Invalid trigger kind: ${triggerKind}","messagePattern":"Invalid trigger kind: (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/trigger/trigger.ts","lineNumber":639,"sourceCode":"\nasync function push(opts: GlobalOptions, filePath: string, remotePath: string) {\n  const workspace = await resolveWorkspace(opts);\n  await requireLogin(opts);\n\n  if (!validatePath(remotePath)) {\n    return;\n  }\n\n  const fstat = await stat(filePath);\n  if (!fstat.isFile()) {\n    throw new Error(\"file path must refer to a file.\");\n  }\n\n  console.log(colors.bold.yellow(\"Pushing trigger...\"));\n\n  const triggerKind = await extractTriggerKindFromPath(filePath);\n  if (!checkIfValidTrigger(triggerKind)) {\n    throw new Error(\"Invalid trigger kind: \" + triggerKind);\n  }\n  await pushTrigger(\n    triggerKind,\n    workspace.workspaceId,\n    remotePath,\n    undefined,\n    parseFromFile(filePath)\n  );\n  console.log(colors.bold.underline.green(\"Trigger pushed\"));\n}\n\nconst command = new Command()\n  .description(\"trigger related commands\")\n  .option(\"--json\", \"Output as JSON (for piping to jq)\")\n  .action(list as any)\n  .command(\"list\", \"list all triggers\")\n  .option(\"--json\", \"Output as JSON (for piping to jq)\")\n  .action(list as any)","sourceCodeStart":621,"sourceCodeEnd":657,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/trigger/trigger.ts#L621-L657","documentation":"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.","triggerScenarios":"Thrown at cli/src/commands/trigger/trigger.ts:639 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Name the file <path>.<kind>_trigger.yaml with a supported kind (http, websocket, kafka, nats, postgres, mqtt, amqp, sqs, gcp, azure, email).","Use `wmill trigger get`/docs to check supported kinds."],"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"}