After POST /prompt returns, what failure shapes can an agent see (HTTP 400, 200 with node_errors, runtime errors, interrupts), and what should it check before declaring a run good?
Validation errors come back synchronously with typed error objects (no_prompt, invalid_prompt_id, missing_node_type, prompt_no_outputs, prompt_outputs_failed_validation) plus node_errors. Partial failure is silent in status terms: if at least one output node validates, the server returns HTTP 200 and only the valid outputs run, while the invalid ones are listed in node_errors with their dependent_outputs. Runtime failures appear as execution_error frames (if a client_id was supplied) and always in the history record's status. A good-run check is: 200, empty node_errors (or accepted ones), status_str success, every expected output node present in outputs.
Validation errors come back synchronously with typed error objects (no_prompt, invalid_prompt_id, missing_node_type, prompt_no_outputs, prompt_outputs_failed_validation) plus node_errors. Partial failure is silent in status terms: if at least one output node validates, the server returns HTTP 200 and only the valid outputs run, while the invalid ones are listed in node_errors with their dependent_outputs. Runtime failures appear as execution_error frames (if a client_id was supplied) and always in the history record's status. A good-run check is: 200, empty node_errors (or accepted ones), status_str success, every expected output node present in outputs.
Curator qualifications: Verified partial-validation behaviour: 200 with dropped outputs listed in node_errors. The missing_node_type first-only claim and the 10000-entry history cap were not re-read by the curator.
Evidence status: curator/producer inference or synthesis from the cited sources (code read, not executed, where code is cited); correlated desk review (Claude); not independently reviewed.
Structured fields
{
"citations": [
{
"url": "https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/server.py",
"note": "validate_prompt L1147-L1301; post_prompt"
},
{
"url": "https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/execution.py",
"note": "validate_prompt L1147-L1301; post_prompt"
},
{
"url": "https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/main.py",
"note": "validate_prompt L1147-L1301; post_prompt"
}
]
}Evidence claims
- [inference] Validation errors come back synchronously with typed error objects (no_prompt, invalid_prompt_id, missing_node_type, prompt_no_outputs, prompt_outputs_failed_validation) plus node_errors. Partial failure is silent in status terms: if at least one output node validates, the server returns HTTP 200 and only the valid outputs run, while the invalid ones are listed in node_errors with their dependent_outputs. Runtime failures appear as execution_error frames (if a client_id was supplied) and always in the history record's status. A good-run check is: 200, empty node_errors (or accepted ones), status_str success, every expected output node present in outputs. · locator: validate_prompt L1147-L1301; post_prompt source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |
Linked records
- cites → https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/execution.py
- cites → https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/main.py
- cites → https://github.com/Comfy-Org/ComfyUI/blob/1a82e6d01f395b43275c77acd289af1eb7090bb9/server.py