解决dify连接授权comfyui报错can not connect to ws://127.0.0.1:8188/ws?clientld=test123

在使用dify配置comfyui的时候报错:can not connect to ws://127.0.0.1:8188/ws?clientld=test123的解决方案。

ff133c0147f7dee14c5f608459e8aa56

点击“如何获取”,然后跳转到

43b9873abe7ee3f64ac94d7ae09341b2

我本地的地址是http://127.0.0.1:8188
但是这里的地址不应该填写这个地址,直接填写:http://host.docker.internal:8188

这样就可以解决问题了。

8409e548456768d22b63001b7c83a390

另外贴一个json工作流的api。

{ “4”: { “inputs”: { “unet_name”: “flux1-dev.safetensors”, “weight_dtype”: “fp8_e4m3fn” }, “class_type”: “UNETLoader”, “_meta”: { “title”: “UNet加载器” } }, “5”: { “inputs”: { “clip_name1”: “clip_l.safetensors”, “clip_name2”: “t5xxl_fp16.safetensors”, “type”: “flux”, “device”: “default” }, “class_type”: “DualCLIPLoader”, “_meta”: { “title”: “双CLIP加载器” } }, “6”: { “inputs”: { “clip_l”: “A cute cat, finger sized, mini”, “t5xxl”: “A cute cat, finger sized, mini”, “guidance”: 3.5, “clip”: [ “5”, 0 ] }, “class_type”: “CLIPTextEncodeFlux”, “_meta”: { “title”: “CLIP文本编码Flux” } }, “7”: { “inputs”: { “seed”: 1074678242030625, “steps”: 7, “cfg”: 1, “sampler_name”: “euler”, “scheduler”: “simple”, “denoise”: 1, “model”: [ “13”, 0 ], “positive”: [ “6”, 0 ], “negative”: [ “8”, 0 ], “latent_image”: [ “9”, 0 ] }, “class_type”: “KSampler”, “_meta”: { “title”: “K采样器” } }, “8”: { “inputs”: { “conditioning”: [ “6”, 0 ] }, “class_type”: “ConditioningZeroOut”, “_meta”: { “title”: “条件零化” } }, “9”: { “inputs”: { “width”: 1000, “height”: 1000, “batch_size”: 2 }, “class_type”: “EmptyLatentImage”, “_meta”: { “title”: “空Latent图像” } }, “10”: { “inputs”: { “samples”: [ “7”, 0 ], “vae”: [ “11”, 0 ] }, “class_type”: “VAEDecode”, “_meta”: { “title”: “VAE解码” } }, “11”: { “inputs”: { “vae_name”: “ae.safetensors” }, “class_type”: “VAELoader”, “_meta”: { “title”: “加载VAE” } }, “12”: { “inputs”: { “images”: [ “10”, 0 ] }, “class_type”: “PreviewImage”, “_meta”: { “title”: “预览图像” } }, “13”: { “inputs”: { “lora_name”: “F1 2301 FLUX.1-Turbo-lora-Alpha 阿里.safetensors”, “strength_model”: 1, “model”: [ “4”, 0 ] }, “class_type”: “LoraLoaderModelOnly”, “_meta”: { “title”: “LoRA加载器(仅模型)” } } }

暂无介绍....

延伸阅读:

英伟达又搞事情!2530亿参数‘推理怪兽’开源,DeepSeek R1被干翻,Meta原地爆炸?

兄弟们,今天科技圈又炸了! 英伟达这老哥,真是不按套路出牌!刚把显卡卖到断货,转头就扔出一颗开源核弹——Llama Ne...

itadol5j
2025年4月22日
Dify升级1.2.0后启动报错问题解决S3_USE_AWS_MANAGED_IAM

以下提供两种解决方式。 方式一   1、修改.env配置文件 修改内容如下: PLUGIN_S3_USE_AWS_MAN...

itadol5j
2025年4月17日
unable to access ‘https://github.com/langgenius/dify.git/’: Failed to connect to github.com port 443 after 21111 ms: Could not connect to server

一般这种都是网络配置原因造成的, 但我这边的状态是浏览器可以正常打开github,终端无法ping通,那应该就是本地代理...

itadol5j
2025年4月17日
解决docker rm删除的docker删除镜像后,磁盘空间不释放问题

一、问题根源:WSL2是个"貔貅精"! (暴躁科普)你以为删了Docker镜像就能腾空间?太天真! WSL2本质是虚拟机...

itadol5j
2025年4月17日
突发:GitHub 全面封杀国内IP、香港IP、澳门IP?程序员惊呼:我的代码还在上面啊!!!

1. 卧槽,GitHub 真的没了? 今天早上,老子像往常一样打开电脑,准备拉个代码,结果…… “GitHub 无法访问...

itadol5j
2025年4月13日