IOPaint icon indicating copy to clipboard operation
IOPaint copied to clipboard

network error

Open Reginald-L opened this issue 1 year ago • 4 comments

Hi, thanks very much for your work. when I run the code base Development rules, got a network error, may I get your help?

  1. npm install --- under web_app
  2. add a .env.local file --- VITE_BACKEND=http://127.0.0.1:9999
  3. npm run dev ---- http://localhost:5173/
  4. error message on console image error1

Reginald-L avatar Apr 29 '24 06:04 Reginald-L

Front-end development requires starting the corresponding backend service.

pip install -r requirements.txt
python3 main.py --model lama --port 9999

Sanster avatar Apr 29 '24 06:04 Sanster

Front-end development requires starting the corresponding backend service.

pip install -r requirements.txt
python3 main.py --model lama --port 9999

Thanks very much for your response, I tried these instructions, but the problem is still remain. It seems that the end program is not running. I tried running 'python3 main.py --model lama --port 9999' both before and after npm run dev image

more interesting thing is: when I run 'pip install iopaint' and 'iopaint start --model lama --port 9999', then localhost:5173 network error disappears.

Reginald-L avatar Apr 29 '24 12:04 Reginald-L

Executing python3 main.py --model lama --port 9999 and executing iopaint start --model lama --port 9999 should be the same. It looks like your command line didn't print any information when executing python3 main.py, I'm not sure what the issue is.

If you do not need to modify the backend code, executing iopaint start --model lama --port 9999 indeed works as well.

Sanster avatar Apr 29 '24 14:04 Sanster

Executing python3 main.py --model lama --port 9999 and executing iopaint start --model lama --port 9999 should be the same. It looks like your command line didn't print any information when executing python3 main.py, I'm not sure what the issue is.

If you do not need to modify the backend code, executing iopaint start --model lama --port 9999 indeed works as well.

cool, thanks very much for your help and perfect work

Reginald-L avatar Apr 30 '24 01:04 Reginald-L