HI !
Pretty basic flow as I’m new to n8n. I have n8n connected to ComfyUI to generate images. This all works. After ComfyUI is complete (http://server/history → status.complete=True, I need to get the binary file image (png).
THE ISSUE – I’m using an Edit Fields Node to search through the JSON tree looking for a specific key-value pair. The Edit Fields Node picks up the value correctly in the preview, but does not output anything when tested.
THANKS !!
Information on your n8n setup
- n8n version: 1.80.3
- Database (default: SQLite): sqlite
- n8n EXECUTIONS_PROCESS setting (default: own, main): probably default, not sure
- Running n8n via (Docker, npm, n8n cloud, desktop app): npm
- Operating system: Ubuntu 20.04
Here’s the JSON I’m trying to parse looking for “filename”.
I have a temp link (expires June 2025) to jsonformatter.org → ComfyUI
Edit Fields Expression:
{{
$(‘Get ComfyUI Status’).first().json.values()[0].outputs.values()[0].images[0].filename
}}
Here is the raw json:
[ { "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae": { "prompt": [ 0, "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae", { "6": { "inputs": { "text": "technology event with sponsors and vendors. everyone has a badge ID around their neck.\n\n\nUse the color #d51619 as the base color. Create six color bars representing its complementary colors and incorporate them into the image. These complementary colors should be used for background objects and accents on the main subject, ensuring a visually harmonious contrast. ", "clip": [ "11", 0 ] }, "class_type": "CLIPTextEncode", "_meta": { "title": "CLIP Text Encode (Positive Prompt)" } }, "8": { "inputs": { "samples": [ "13", 0 ], "vae": [ "10", 0 ] }, "class_type": "VAEDecode", "_meta": { "title": "VAE Decode" } }, "9": { "inputs": { "filename_prefix": "ComfyUI", "images": [ "39", 0 ] }, "class_type": "SaveImage", "_meta": { "title": "Save Image" } }, "10": { "inputs": { "vae_name": "ae.safetensors" }, "class_type": "VAELoader", "_meta": { "title": "Load VAE" } }, "11": { "inputs": { "clip_name1": "t5xxl_fp16.safetensors", "clip_name2": "clip_l.safetensors", "type": "flux", "device": "default" }, "class_type": "DualCLIPLoader", "_meta": { "title": "DualCLIPLoader" } }, "12": { "inputs": { "unet_name": "flux1-dev-fp8-e5m2.safetensors", "weight_dtype": "fp8_e4m3fn" }, "class_type": "UNETLoader", "_meta": { "title": "Load Diffusion Model" } }, "13": { "inputs": { "noise": [ "25", 0 ], "guider": [ "22", 0 ], "sampler": [ "16", 0 ], "sigmas": [ "17", 0 ], "latent_image": [ "27", 0 ] }, "class_type": "SamplerCustomAdvanced", "_meta": { "title": "SamplerCustomAdvanced" } }, "16": { "inputs": { "sampler_name": "euler" }, "class_type": "KSamplerSelect", "_meta": { "title": "KSamplerSelect" } }, "17": { "inputs": { "scheduler": "simple", "steps": 23, "denoise": 1, "model": [ "30", 0 ] }, "class_type": "BasicScheduler", "_meta": { "title": "BasicScheduler" } }, "22": { "inputs": { "model": [ "30", 0 ], "conditioning": [ "26", 0 ] }, "class_type": "BasicGuider", "_meta": { "title": "BasicGuider" } }, "25": { "inputs": { "noise_seed": 506889313624031 }, "class_type": "RandomNoise", "_meta": { "title": "RandomNoise" } }, "26": { "inputs": { "guidance": 3.5, "conditioning": [ "6", 0 ] }, "class_type": "FluxGuidance", "_meta": { "title": "FluxGuidance" } }, "27": { "inputs": { "width": 1024, "height": 608, "batch_size": 1 }, "class_type": "EmptySD3LatentImage", "_meta": { "title": "EmptySD3LatentImage" } }, "30": { "inputs": { "max_shift": 1.15, "base_shift": 0.5, "width": 1024, "height": 608, "model": [ "12", 0 ] }, "class_type": "ModelSamplingFlux", "_meta": { "title": "ModelSamplingFlux" } }, "39": { "inputs": { "position": "Bottom Left", "opacity_percentage": 100, "scale_percentage": 100, "make_black": false, "remove_white": false, "image": [ "8", 0 ], "watermark_image": [ "40", 0 ], "watermark_mask": [ "40", 1 ] }, "class_type": "ImageWatermarkNode", "_meta": { "title": "Add Image Watermark" } }, "40": { "inputs": { "image": "ReEvent-Logo-Watermark-arc.png", "upload": "image" }, "class_type": "LoadImage", "_meta": { "title": "Load Image" } } }, {}, [ "9" ] ], "outputs": { "9": { "images": [ { "filename": "ComfyUI_00194_.png", "subfolder": "", "type": "output" } ] } }, "status": { "status_str": "success", "completed": true, "messages": [ [ "execution_start", { "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae", "timestamp": 1740496127389 } ], [ "execution_cached", { "nodes": [], "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae", "timestamp": 1740496127397 } ], [ "execution_success", { "prompt_id": "229cb1d4-62d8-4a8d-98e1-afbe8cb637ae", "timestamp": 1740496232025 } ] ] }, "meta": { "9": { "node_id": "9", "display_node": "9", "parent_node": null, "real_node_id": "9" } } } } ]
Let me know if you see anything obvious, or how I can debug the no-output of the node.
Thanks !!




