Comfy-Org / Comfy-Org/ComfyUI

increase api error log verbosity please

Open
#9,447 2 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 6h
Merged PRs (30d)
155

Description

### Feature Idea

I am trying to run the following workflow through the /prompt endpoint:

`{
"3": {
"inputs": {
"seed": 717994921300487,
"steps": 30,
"cfg": 6,
"sampler_name": "uni_pc",
"scheduler": "simple",
"denoise": 1,
"model": [
"48",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"40",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"6": {
"inputs": {
"text": "The image shows a long, narrow corridor in a library. The corridor is filled with rows of bookshelves on both sides, each filled with books of different sizes and colors. The books are arranged in neat rows, and the floor is made of concrete. In the center of the corridor, there is a bright pink neon light that is shining down on the floor, creating a sense of depth and dimension. Above the light, there are two lanterns hanging from the ceiling. The overall mood of the image is dark and mysterious.",
"clip": [
"38",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Positive Prompt)"
}
},
"7": {
"inputs": {
"text": "low quality, blurry, ugly, poorly drawn hands, deformed face, extra limbs, bad anatomy, low resolution, disfigured, unrealistic, cartoonish, watermark, text, signature, distorted proportions, creepy, glitch, jpeg artifacts\n",
"clip": [
"38",
0
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Negative Prompt)"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"39",
0
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"28": {
"inputs": {
"filename_prefix": "ComfyUI",
"fps": 16,
"lossless": false,
"quality": 90,
"method": "default",
"images": [
"8",
0
]
},
"class_type": "SaveAnimatedWEBP",
"_meta": {
"title": "SaveAnimatedWEBP"
}
},
"37": {
"inputs": {
"unet_name": "wan2.1_t2v_1.3B_fp16.safetensors",
"weight_dtype": "default"
},
"class_type": "UNETLoader",
"_meta": {
"title": "Load Diffusion Model"
}
},
"38": {
"inputs": {
"clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
"type": "wan",
"device": "default"
},
"class_type": "CLIPLoader",
"_meta": {
"title": "Load CLIP"
}
},
"39": {
"inputs": {
"vae_name": "wan_2.1_vae.safetensors"
},
"class_type": "VAELoader",
"_meta": {
"title": "Load VAE"
}
},
"40": {
"inputs": {
"width": 832,
"height": 480,
"length": 1,
"batch_size": 1
},
"class_type": "EmptyHunyuanLatentVideo",
"_meta": {
"title": "EmptyHunyuanLatentVideo"
}
},
"48": {
"inputs": {
"shift": 8,
"model": [
"37",
0
]
},
"class_type": "ModelSamplingSD3",
"_meta": {
"title": "ModelSamplingSD3"
}
}
}`
this is the -vvv curl response:
`root@76574f852553:/go# curl -vvv -k http://172.17.0.":"0eb8a8b8-758b-48a6-b4ed-86d7f1a31cb7", "prompt":"{\"3\": {\"inputs\": {\"seed\": 717994921300487,\"steps\": 30,\"cfg\": 6,\"sampler_name\": \"uni_pc\",\"scheduler\": \"simple\",\"denoise\": 1,\"model\": [\"48\",0],\"positive\": [\"6\",0],\"negative\": [\"7\",0],\"latent_image\": [\"40\",0]},\"class_type\": \"KSampler\",\"_meta\": {\"title\": \"KSampler\"}},\"6\": {\"inputs\": {\"text\": \"The image shows a long, narrow corridor in a library. The corridor is filled with rows of bookshelves on both sides, each filled with books of different sizes and colors. The books are arranged in neat rows, and the floor is made of concrete. In the center of the corridor, there is a bright pink neon light that is shining down on the floor, creating a sense of depth and dimension. Above the light, there are two lanterns hanging from the ceiling. The overall mood of the image is dark and mysterious.\",\"clip\": [\"38\",0]},\"class_type\": \"CLIPTextEncode\",\"_meta\": {\"title\": \"CLIP Text Encode (Positive Prompt)\"}},\"7\": {\"inputs\": {\"text\": \"low quality, blurry, ugly, poorly drawn hands, deformed face, extra limbs, bad anatomy, low resolution, disfigured, unrealistic, cartoonish, watermark, text, signature, distorted proportions, creepy, glitch, jpeg artifacts\n\",\"clip\": [\"38\",0]},\"class_type\": \"CLIPTextEncode\",\"_meta\": {\"title\": \"CLIP Text Encode (Negative Prompt)\"}},\"8\": {\"inputs\": {\"samples\": [\"3\",0],\"vae\": [\"39\",0]},\"class_type\": \"VAEDecode\",\"_meta\": {\"title\": \"VAE Decode\"}},\"28\": {\"inputs\": {\"filename_prefix\": \"ComfyUI\",\"fps\": 16,\"lossless\": false,\"quality\": 90,\"method\": \"default\",\"images\": [\"8\",0]},\"class_type\": \"SaveAnimatedWEBP\",\"_meta\": {\"title\": \"SaveAnimatedWEBP\"}},\"37\": {\"inputs\": {\"unet_name\": \"wan2.1_t2v_1.3B_fp16.safetensors\",\"weight_dtype\": \"default\"},\"class_type\": \"UNETLoader\",\"_meta\": {\"title\": \"Load Diffusion Model\"}},\"38\": {\"inputs\": {\"clip_name\": \"umt5_xxl_fp8_e4m3fn_scaled.safetensors\",\"type\": \"wan\",\"device\": \"default\"},\"class_type\": \"CLIPLoader\",\"_meta\": {\"title\": \"Load CLIP\"}},\"39\": {\"inputs\": {\"vae_name\": \"wan_2.1_vae.safetensors\"},\"class_type\": \"VAELoader\",\"_meta\": {\"title\": \"Load VAE\"}},\"40\": {\"inputs\": {\"width\": 832,\"height\": 480,\"length\": 1,\"batch_size\": 1},\"class_type\": \"EmptyHunyuanLatentVideo\",\"_meta\": {\"title\": \"EmptyHunyuanLatentVideo\"}},\"48\": {\"inputs\": {\"shift\": 8,\"model\": [\"37\",0]},\"class_type\": \"ModelSamplingSD3\",\"_meta\": {\"title\": \"ModelSamplingSD3\"}}}"}'
* Trying 172.17.0.1:8188...
* Connected to 172.17.0.1 (172.17.0.1) port 8188 (#0)
> POST /prompt HTTP/1.1
> Host: 172.17.0.1:8188
> User-Agent: curl/7.88.1
> Accept: */*
> Content-Length: 2619
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< Content-Length: 55
< Date: Wed, 20 Aug 2025 11:19:49 GMT
< Server: Python/3.11 aiohttp/3.10.11
< Connection: close
<
500 Internal Server Error

* Closing connection 0
Server got itself in trouble`

and the following log entries:
`[2025-08-20 12:23:22.201] got prompt
[2025-08-20 12:23:22.202] Error handling request
`

I would love to be able to diagnose what is going wrong, but I have no way of doing so.

### Existing Solutions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.