ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

"TypeError: Failed to fetch" on run_gpu

Open Rehanaquarius opened this issue 1 year ago • 7 comments

I have been using flux dev fp8 in a month but one day i start comfyui and running flux text to image When I start Queue Prompt, it appears a red "Reconnecting" message. When it stops and I start Queue again, the red message "TypeError: Failed to fetch" appears. it only gave this error on flux model, I used flux dev fp8 model and my system config is gpu RTX 4060 16gb, AMD Ryzen 5 5600, 16 gb ram.

How to solve?? Thanks

Image

Image

Rehanaquarius avatar Jun 10 '25 15:06 Rehanaquarius

There is not enough RAM (minimum 64 GB recommended). It is recommended to include the swap file.

BuBaLoM-JMP avatar Jun 13 '25 07:06 BuBaLoM-JMP

on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC

Phaethon1 avatar Jun 28 '25 21:06 Phaethon1

on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC

非常好的解决办法

david223366 avatar Jul 16 '25 13:07 david223366

on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC

this actually works, thanks

LongBob001 avatar Aug 10 '25 17:08 LongBob001

on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC

This solution fixed issue on my end, thanks a lot

Roodj avatar Dec 11 '25 08:12 Roodj

I have sa the issue. How can i allocate 90 GB space. Help pls

serbansavinel-boop avatar Jan 15 '26 12:01 serbansavinel-boop

🚨 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.

🟢 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 ✅

🟢 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

🟢 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 🔥

🟡 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