#Bug? When running test task, if payload invalid, doesn't error
1 messages · Page 1 of 1 (latest)
Hi @heavy ruin. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
The docs don’t mention this specific behavior in the Test UI, so I can’t confirm whether it’s a known bug or just current UX. The “Run tests” page is documented only at a high level (select task, enter payload/metadata, run test), with no detail about how payload validation errors are surfaced in the dashboard. [Run tests]
For payload validation itself:
- If you use
schemaTask, invalid payloads will cause errors:- Triggering via
myTask.trigger(...)validates against the schema and throws if invalid. - The payload is also validated before each run; if invalid, the run fails with a
TaskPayloadParsedErrorand skips retrying. [schemaTask]
- Triggering via
The docs don’t say how those validation errors appear when you manually run a test from the dashboard, or whether a malformed JSON payload in the Test UI should show an inline error vs. silently doing nothing.
Given that, there are two possibilities:
- Invalid JSON / syntax in the Test payload UI – behavior is not documented; it may currently fail client‑side without a clear message.
- Schema validation failure – this should produce a run that fails with a parsing error, but the docs don’t describe how clearly that’s surfaced in the Test page.