comfyui tool cant read sys.files variable. #17498

Closed
opened 2026-02-21 19:36:05 -05:00 by yindo · 0 comments
Owner

Originally created by @matrix12315 on GitHub (Sep 16, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.6.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I have used text2img workflow, it works, so the comfyui configuration is right.

  1. use img2img "workflow" node of comfyui tool
Image
  1. input comfyui's json api
{
  "3": {
    "inputs": {
      "seed": 601685180812477,
      "steps": 20,
      "cfg": 2.5,
      "sampler_name": "euler",
      "scheduler": "simple",
      "denoise": 1,
      "model": [
        "75",
        0
      ],
      "positive": [
        "76",
        0
      ],
      "negative": [
        "77",
        0
      ],
      "latent_image": [
        "88",
        0
      ]
    },
    "class_type": "KSampler",
    "_meta": {
      "title": "KSampler"
    }
  },
  "8": {
    "inputs": {
      "samples": [
        "3",
        0
      ],
      "vae": [
        "39",
        0
      ]
    },
    "class_type": "VAEDecode",
    "_meta": {
      "title": "VAE Decode"
    }
  },
  "37": {
    "inputs": {
      "unet_name": "qwen_image_edit_fp8_e4m3fn.safetensors",
      "weight_dtype": "default"
    },
    "class_type": "UNETLoader",
    "_meta": {
      "title": "Load Diffusion Model"
    }
  },
  "38": {
    "inputs": {
      "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",
      "type": "qwen_image",
      "device": "default"
    },
    "class_type": "CLIPLoader",
    "_meta": {
      "title": "Load CLIP"
    }
  },
  "39": {
    "inputs": {
      "vae_name": "qwen_image_vae.safetensors"
    },
    "class_type": "VAELoader",
    "_meta": {
      "title": "Load VAE"
    }
  },
  "60": {
    "inputs": {
      "filename_prefix": "ComfyUI",
      "images": [
        "8",
        0
      ]
    },
    "class_type": "SaveImage",
    "_meta": {
      "title": "Save Image"
    }
  },
  "66": {
    "inputs": {
      "shift": 3,
      "model": [
        "37",
        0
      ]
    },
    "class_type": "ModelSamplingAuraFlow",
    "_meta": {
      "title": "ModelSamplingAuraFlow"
    }
  },
  "75": {
    "inputs": {
      "strength": 1,
      "model": [
        "66",
        0
      ]
    },
    "class_type": "CFGNorm",
    "_meta": {
      "title": "CFGNorm"
    }
  },
  "76": {
    "inputs": {
      "prompt": "{{#llm.text#}}",
      "clip": [
        "38",
        0
      ],
      "vae": [
        "39",
        0
      ],
      "image": [
        "93",
    ��   0
      ]
    },
    "class_type": "TextEncodeQwenImageEdit",
    "_meta": {
      "title": "TextEncodeQwenImageEdit"
    }
  },
  "77": {
    "inputs": {
      "prompt": "",
      "clip": [
        "38",
        0
      ],
      "vae": [
        "39",
        0
      ],
      "image": [
        "93",
        0
      ]
    },
    "class_type": "TextEncodeQwenImageEdit",
    "_meta": {
      "title": "TextEncodeQwenImageEdit"
    }
  },
  "78": {
    "inputs": {
      "image": ""
    },
    "class_type": "LoadImage",
    "_meta": {
      "title": "Load Image"
    }
  },
  "88": {
    "inputs": {
      "pixels": [
        "93",
        0
      ],
      "vae": [
        "39",
        0
      ]
    },
    "class_type": "VAEEncode",
    "_meta": {
      "title": "VAE Encode"
    }
  },
  "93": {
    "inputs": {
      "upscale_method": "lanczos",
      "megapixels": 1,
      "image": [
        "78",
        0
      ]
    },
    "class_type": "ImageScaleToTotalPixels",
    "_meta": {
      "title": "Scale Image to Total Pixels"
    }
  }
}
  1. select sys.files variable and basic settings
Image 4. run work flow and fail beacuse the sys.files has valuesRun failed: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ConnectTimeout","message":"timed out"} Image
  1. run work flow and success after reset sys.files, but it doest meet my requirements of edit image in this situation.
Image

✔️ Expected Behavior

work normally and return a edited image

Actual Behavior

Run failed: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ConnectTimeout","message":"timed out"}

Originally created by @matrix12315 on GitHub (Sep 16, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.6.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce I have used text2img workflow, it works, so the comfyui configuration is right. 1. use img2img "workflow" node of comfyui tool <img width="2401" height="1271" alt="Image" src="https://github.com/user-attachments/assets/a677e776-bccf-468f-87b0-43e2d06d2732" /> 2. input comfyui's json api ``` {   "3": {     "inputs": {       "seed": 601685180812477,       "steps": 20,       "cfg": 2.5,       "sampler_name": "euler",       "scheduler": "simple",       "denoise": 1,       "model": [         "75",         0       ],       "positive": [         "76",         0       ],       "negative": [         "77",         0       ],       "latent_image": [         "88",         0       ]     },     "class_type": "KSampler",     "_meta": {       "title": "KSampler"     }   },   "8": {     "inputs": {       "samples": [         "3",         0       ],       "vae": [         "39",         0       ]     },     "class_type": "VAEDecode",     "_meta": {       "title": "VAE Decode"     }   },   "37": {     "inputs": {       "unet_name": "qwen_image_edit_fp8_e4m3fn.safetensors",       "weight_dtype": "default"     },     "class_type": "UNETLoader",     "_meta": {       "title": "Load Diffusion Model"     }   },   "38": {     "inputs": {       "clip_name": "qwen_2.5_vl_7b_fp8_scaled.safetensors",       "type": "qwen_image",       "device": "default"     },     "class_type": "CLIPLoader",     "_meta": {       "title": "Load CLIP"     }   },   "39": {     "inputs": {       "vae_name": "qwen_image_vae.safetensors"     },     "class_type": "VAELoader",     "_meta": {       "title": "Load VAE"     }   },   "60": {     "inputs": {       "filename_prefix": "ComfyUI",       "images": [         "8",         0       ]     },     "class_type": "SaveImage",     "_meta": {       "title": "Save Image"     }   },   "66": {     "inputs": {       "shift": 3,       "model": [         "37",         0       ]     },     "class_type": "ModelSamplingAuraFlow",     "_meta": {       "title": "ModelSamplingAuraFlow"     }   },   "75": {     "inputs": {       "strength": 1,       "model": [         "66",         0       ]     },     "class_type": "CFGNorm",     "_meta": {       "title": "CFGNorm"     }   },   "76": {     "inputs": {       "prompt": "{{#llm.text#}}",       "clip": [         "38",         0       ],       "vae": [         "39",         0       ],       "image": [         "93",     ��   0       ]     },     "class_type": "TextEncodeQwenImageEdit",     "_meta": {       "title": "TextEncodeQwenImageEdit"     }   },   "77": {     "inputs": {       "prompt": "",       "clip": [         "38",         0       ],       "vae": [         "39",         0       ],       "image": [         "93",         0       ]     },     "class_type": "TextEncodeQwenImageEdit",     "_meta": {       "title": "TextEncodeQwenImageEdit"     }   },   "78": {     "inputs": {       "image": ""     },     "class_type": "LoadImage",     "_meta": {       "title": "Load Image"     }   },   "88": {     "inputs": {       "pixels": [         "93",         0       ],       "vae": [         "39",         0       ]     },     "class_type": "VAEEncode",     "_meta": {       "title": "VAE Encode"     }   },   "93": {     "inputs": {       "upscale_method": "lanczos",       "megapixels": 1,       "image": [         "78",         0       ]     },     "class_type": "ImageScaleToTotalPixels",     "_meta": {       "title": "Scale Image to Total Pixels"     }   } } ``` 3. select sys.files variable and basic settings <img width="838" height="1431" alt="Image" src="https://github.com/user-attachments/assets/77173e4b-2254-40ae-98e9-0922e525b437" /> 4. run work flow and fail beacuse the sys.files has valuesRun failed: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ConnectTimeout","message":"timed out"} <img width="3199" height="1732" alt="Image" src="https://github.com/user-attachments/assets/818f536c-1021-4f3b-a5c7-6d5eef635b91" /> 5. run work flow and success after reset sys.files, but it doest meet my requirements of edit image in this situation. <img width="3199" height="1760" alt="Image" src="https://github.com/user-attachments/assets/c5104b2c-a2cf-423c-bbca-b0ca615fcaa4" /> ### ✔️ Expected Behavior work normally and return a edited image ### ❌ Actual Behavior Run failed: Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ConnectTimeout","message":"timed out"}
yindo closed this issue 2026-02-21 19:36:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#17498