comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
49.63k stars 5.22k forks source link

--listen issue for local network #3646

Open aniketgore opened 3 months ago

aniketgore commented 3 months ago

I am getting below error after doing a fresh install on a local network linux machine.

File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data File "aiohttp/_http_parser.pyx", line 732, in aiohttp._http_parser.cb_on_header_value aiohttp.http_exceptions.LineTooLong: 400, message: Got more than 8190 bytes (9188) when reading Header value is too long.

I tried reinstall, removing the custom nodes and other things, but whenever I use --listen this error comes.

shawnington commented 3 months ago

Is there a longer error you can post?

all4you commented 2 months ago

I have met the same issue after I updated all nodes by ComfyUI-Manager I start up comfyui by running:

LOG_FILE="logs/comfyui.log"
APP_SCRIPT="main.py --listen 0.0.0.0 --port 7860"

start_app() {
        echo "Starting the application..."
        nohup python -u $APP_SCRIPT > $LOG_FILE 2>&1 &
        echo "Application started."
}

The error msg is:

Error handling request
Traceback (most recent call last):
  File "/Users/admin/opt/miniconda3/envs/comfyui/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 350, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 557, in aiohttp._http_parser.HttpParser.feed_data
  File "aiohttp/_http_parser.pyx", line 732, in aiohttp._http_parser.cb_on_header_value
aiohttp.http_exceptions.LineTooLong: 400, message:
  Got more than 8190 bytes (8214) when reading Header value is too long.

image

image

But I can visit it in Traceless mode: image

all4you commented 1 month ago

Is there any progress?

Enchante503 commented 1 month ago

2024-07-26_23h44_37 Solved! Click on the image icon to go to the site details and delete the cookies.