ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

TypeError: Failed to fetch

Open Rajnikanth31 opened this issue 1 year ago • 20 comments

After reaching 36%, it starts showing 'Reconnecting' and then displays a TypeError: Failed to fetch. When I try to check the logs, they appear empty. In right side it apears Failed to fetch server logs

Rajnikanth31 avatar Aug 04 '25 09:08 Rajnikanth31

After reaching 36%, it starts showing 'Reconnecting' and then displays a TypeError: Failed to fetch. When I try to check the logs, they appear empty. In right side it apears Failed to fetch server logs

Please upload the full log and a screenshot of the workflow in its error state, so we can also see which node caused the failure.

ltdrdata avatar Aug 04 '25 09:08 ltdrdata

Did we get a resolution to this issue?

danielmurphy02830 avatar Aug 20 '25 12:08 danielmurphy02830

look this

Image Image

jeth20120527-star avatar Aug 31 '25 17:08 jeth20120527-star

遇到同样的问题,怎么解决啊?

huahaoliu avatar Sep 25 '25 10:09 huahaoliu

一样的问题+1

lanry2021 avatar Sep 25 '25 12:09 lanry2021

Same issue here. It says failed to fetch but no data.

https://res.cloudinary.com/dccjycgn1/image/upload/v1759599266/Screenshot_2025-10-04_213035_aseqbk.png

Image Image Image

frznfrg avatar Oct 04 '25 17:10 frznfrg

I have the same problem

cesardesu77 avatar Nov 02 '25 11:11 cesardesu77

Same problem someone please write a solution

acomstock2-code avatar Nov 23 '25 15:11 acomstock2-code

Same problem. Does anybody have a workaround? At present I can only restart ComfyUI to recover after it occured. The bug keeps aborting my nightly queue - this hadn't happened some months ago.

eternioc avatar Nov 24 '25 07:11 eternioc

same problem. My issue occurs when I reinstalled the comfyui desktop in driver D. Before that I can run the workflow. I did not get any logs or output, just saying unable to load logs.

Image

hitxgl avatar Nov 29 '25 18:11 hitxgl

I had to make sure my firewall made allowance for comfyui, it fixed my issue.

kasumileifan-cpu avatar Dec 13 '25 13:12 kasumileifan-cpu

我也是这个但是我是用KTX2才有 用Zinmagtyrb就没问题

MAOTOU0428 avatar Feb 13 '26 19:02 MAOTOU0428

SOLUÇÃO APROVADA

1º PASSO IMPORTANTE

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14 Python 3.12 Python 3.11

👉 DESINSTALE TODOS

Como desinstalar:

Win + R Digite: appwiz.cpl

Remova todas as versões de Python.

Reinicie o PC.

passosdaniel880-dev avatar Feb 17 '26 18:02 passosdaniel880-dev

SOLUÇÃO APROVADA

1º PASSO IMPORTANTE

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14 Python 3.12 Python 3.11

👉 DESINSTALE TODOS

Como:

Win + R Digite: appwiz.cpl

Remova todas as versões do Python.

Reinicie o PC.

🟢 PASSO 1 — INSTALAR PYTHON CORRETO

Baixe:

👉 Python 3.10.19 (64-bit)

Durante a instalação:

✅ Marque Add Python to PATH Clique em Install Now

Depois teste:

python --version

Tem que aparecer algo como:

Python 3.10.x

Se aparecer isso → OK ✅

passosdaniel880-dev avatar Feb 17 '26 18:02 passosdaniel880-dev

SOLUÇÃO APROVADA

1º PASSO IMPORTANTE

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14 Python 3.12 Python 3.11

👉 DESINSTALE TODOS

Como:

Win + R Digite: appwiz.cpl

Remova todas as versões do Python.

Reinicie o PC.

🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)

Baixe e instale o Git.

Depois teste no CMD: git --version

Se aparecer versão → OK ✅


🟢 PASSO 3 — BAIXAR O COMFYUI

Escolha uma pasta (exemplo: Documentos)

No CMD:

cd C:\Users\SEU_USUARIO\Documents

Depois:

git clone https://github.com/comfyanonymous/ComfyUI.git

Espere terminar.

Depois entre na pasta:

cd ComfyUI

passosdaniel880-dev avatar Feb 17 '26 18:02 passosdaniel880-dev

SOLUÇÃO APROVADA

1º PASSO IMPORTANTE

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14 Python 3.12 Python 3.11

👉 DESINSTALE TODOS

Como:

Win + R Digite: appwiz.cpl

Remova todas as versões do Python.

Reinicie o PC.

🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)

⚠️ Esse passo é CRÍTICO

Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):

Use cu118

Digite:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Espere terminar (vai baixar ~2.7GB).


🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO

Ainda dentro da pasta ComfyUI:

pip install -r requirements.txt

Espere terminar.


🟢 PASSO 6 — RODAR O COMFYUI

Ainda na pasta:

python main.py

Se deu certo vai aparecer:

Device: cuda:0 NVIDIA ... Starting server To see the GUI go to: http://127.0.0.1:8188

Abra no navegador:

http://127.0.0.1:8188

PRONTO 🔥

passosdaniel880-dev avatar Feb 17 '26 18:02 passosdaniel880-dev

SOLUÇÃO APROVADA

1º PASSO IMPORTANTE

🚨 ANTES DE TUDO (IMPORTANTE)

Se tiver:

Python 3.14 Python 3.12 Python 3.11

👉 DESINSTALE TODOS

Como:

Win + R Digite: appwiz.cpl

Remova todas as versões do Python.

Reinicie o PC.

🟡 SE DER ERRO CUDA

Atualize os drivers da NVIDIA.

🔵 PARA ATUALIZAR NO FUTURO

Entre na pasta ComfyUI:

git pull pip install -r requirements.txt

📌 RESUMO DA RECEITA CERTA

✔ Python 3.10.19 ✔ Git instalado ✔ torch cu118 ✔ requirements instalados ✔ rodar com python main.py

passosdaniel880-dev avatar Feb 17 '26 18:02 passosdaniel880-dev

I also encountered a similar error: it prompts that it cannot connect to the server log, and then "fail to fetch".

It might be a problem of too much memory usage, at least that's what Gemini told me when I asked it.

After I followed Gemini's suggestion to increase the virtual memory to 40G, this error no longer occurred.

mauyumaster avatar Mar 09 '26 14:03 mauyumaster

我一直遇到这个问题:ComfyUI 运行时显示内存、显存、显卡占用全部达到 100%,运行五分钟左右软件就崩溃。后来我用 WorkBuddy 解决了问题。进入 custom_nodes 文件夹,找到 Comfyui-lumi-batcher 目录,将其重命名为 Comfyui-lumi-batcher-backup。修改后再启动 ComfyUI,内存占用降至 40%–75%、显卡 100%、显存 85%,从此再也没有崩溃过。 English I have been facing this issue for a long time: when ComfyUI is running, RAM, GPU and VRAM all hit 100%, and the program crashes after about five minutes. I later fixed it using WorkBuddy. Go into the custom_nodes folder, locate the Comfyui-lumi-batcher directory, and rename it to Comfyui-lumi-batcher-backup. After that, when running ComfyUI, RAM stays at 40%–75%, GPU at 100%, VRAM at 85%, and ComfyUI no longer crashes. Português Eu sempre tive esse problema: ao executar o ComfyUI, a RAM, GPU e VRAM ficam todas em 100%, e o software fecha sozinho após cinco minutos. Depois resolvi com o WorkBuddy. Acesse a pasta custom_nodes, encontre a pasta Comfyui-lumi-batcher e renomeie para Comfyui-lumi-batcher-backup. Após isso, ao rodar o ComfyUI, a RAM fica entre 40% e 75%, GPU em 100%, VRAM em 85%, e o ComfyUI não crasha mais. Español Siempre he tenido este problema: cuando se ejecuta ComfyUI, la RAM, la GPU y la VRAM alcanzan el 100 %, y el programa se cae a los cinco minutos. Más tarde lo solucioné con WorkBuddy. Entra en la carpeta custom_nodes, busca la carpeta Comfyui-lumi-batcher y renómbrala como Comfyui-lumi-batcher-backup. Después, al usar ComfyUI, la RAM está entre 40 % y 75 %, la GPU al 100 %, la VRAM al 85 %, y ComfyUI ya no se bloquea.

wenzhant-gif avatar Mar 22 '26 04:03 wenzhant-gif