Fix ComfyUI prompt queueing: always generate server-side UUID for prompt_id
ComfyUI's /prompt endpoint now validates prompt_id as a UUID. This app's queueComfyPrompt() trusted a client-supplied identifiers.promptId (used as a correlation id for progress polling), which is not guaranteed to be a UUID, causing every queued workflow to fail with "prompt_id must be a valid UUID" and no way to retry successfully. The correlation id used for progress streaming (executionPromptId) is independent of what's actually sent to ComfyUI in the request body, so this is safe to always regenerate. Found and verified 2026-07-30 while getting 3DGenStudio's bundled mesh-gen workflows working against a fresh ComfyUI instance.
This commit is contained in:
parent
52862252f2
commit
9786988690
1 changed files with 1 additions and 1 deletions
|
|
@ -1481,7 +1481,7 @@ async function sleep(ms) {
|
||||||
|
|
||||||
async function queueComfyPrompt(baseUrl, workflowJson, identifiers = {}) {
|
async function queueComfyPrompt(baseUrl, workflowJson, identifiers = {}) {
|
||||||
const clientId = String(identifiers?.clientId || '').trim() || randomUUID();
|
const clientId = String(identifiers?.clientId || '').trim() || randomUUID();
|
||||||
const promptId = String(identifiers?.promptId || '').trim() || randomUUID();
|
const promptId = randomUUID(); // patched 2026-07-30: ComfyUI now enforces UUID prompt_id, client-supplied ids can be non-UUID and get rejected
|
||||||
const response = await fetch(`${baseUrl}/prompt`, {
|
const response = await fetch(`${baseUrl}/prompt`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue