Skip to content

Workaround for Inference Encoder value not in list when using Unet only SDXL custom workflow (Api Error 400 Bad Request) #1661

@bombslop

Description

@bombslop

What happened?

Api Error
When using a Unet only SDXL model, and using the Custom Workflow, the choices for the encoder type is outdated. ComfyUI is expecting one of the following: sdxl, sd3, flux, hunyuan_video, hidream, hunyuan_image, hunyuan_video_15, kandinsky5, kandinsky5_image, ltxv, newbie, ace.
The list currently only has flux, flux2, lumina2, stable_diffusion, sd3, HiDream.

Current Workaround
Setup Inference so it produces the error. Save the project. Open the project file in text editor. Find around line 80 this entry "SelectedClipType": "stable_diffusion" and change to SelectedClipType": "sdxl"
Save project file and open in Inference and run Prompt.
Profit!

Steps to reproduce

  1. Open Stability Matrix.
  2. Launch ComfyUI.
  3. Go to Inference.
  4. Load a Unet Only model.
  5. Select Custom Workflow.
  6. Choose stable_diffusion Encoder.
  7. Apply remaining settings and run prompt.

Relevant logs

Api Error
Bad - Request
{
  "error": {
    "type": "prompt_outputs_failed_validation",
    "message": "Prompt outputs failed validation",
    "details": "",
    "extra_info": {}
  },
  "node_errors": {
    "DualCLIPLoader": {
      "errors": [
        {
          "type": "value_not_in_list",
          "message": "Value not in list",
          "details": "type: \u0027stable_diffusion\u0027 not in [\u0027sdxl\u0027, \u0027sd3\u0027, \u0027flux\u0027, \u0027hunyuan_video\u0027, \u0027hidream\u0027, \u0027hunyuan_image\u0027, \u0027hunyuan_video_15\u0027, \u0027kandinsky5\u0027, \u0027kandinsky5_image\u0027, \u0027ltxv\u0027, \u0027newbie\u0027, \u0027ace\u0027]",
          "extra_info": {
            "input_name": "type",
            "input_config": [
              [
                "sdxl",
                "sd3",
                "flux",
                "hunyuan_video",
                "hidream",
                "hunyuan_image",
                "hunyuan_video_15",
                "kandinsky5",
                "kandinsky5_image",
                "ltxv",
                "newbie",
                "ace"
              ],
              {}
            ],
            "received_value": "stable_diffusion"
          }
        }
      ],
      "dependent_outputs": [
        "SaveImage"
      ],
      "class_type": "DualCLIPLoader"
    }
  }
}

Version

v0.24.0

What Operating System are you using?

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions