Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Max retries exceeded with url: /prompt #37

Open
alessandroperilli opened this issue May 13, 2024 · 3 comments
Open

Error: Max retries exceeded with url: /prompt #37

alessandroperilli opened this issue May 13, 2024 · 3 comments

Comments

@alessandroperilli
Copy link

alessandroperilli commented May 13, 2024

I am getting the following error with the XYZ Plot node:

File "D:\Tools\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\Tools\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "D:\Tools\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\Tools\ComfyUI\custom_nodes\comfyui-browser\nodes\xyz_plot.py", line 157, in run
queue_new_prompt(new_prompt)
File "D:\Tools\ComfyUI\custom_nodes\comfyui-browser\nodes\xyz_plot.py", line 110, in queue_new_prompt
return requests.post(SERVER_BASE_URL + '/prompt', data=data, proxies=proxies)
File "D:\Tools\ComfyUI\venv\lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "D:\Tools\ComfyUI\venv\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Tools\ComfyUI\venv\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "D:\Tools\ComfyUI\venv\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "D:\Tools\ComfyUI\venv\lib\site-packages\requests\adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='0.0.0.0', port=8188): Max retries exceeded with url: /prompt (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001E23270EA70>: Failed to establish a new connection: [WinError 10049] The requested address is not valid in its context'))

This is the default workflow I tested:

Screenshot 2024-05-13 at 21 51 25

I'm having this problem with both Vivaldi and Safari on macOS. I remotely connect to a ComfyUI server (on Windows) in the network.
The browser plugin, part of the suite, works fine. It's just the XYZ Plot node that causes this issue.

What am I doing wrong?

Thanks for your help.

@poipoi300
Copy link

Same issue, temporarily fixed by setting my listen IP (in the .bat file) to 127.0.0.1.This also seemed to have fixed at least one completely unrelated issue of some LoRAs not loading properly.

@alessandroperilli
Copy link
Author

The problem with this approach is that it doesn't work in a distributed environment (which is the default in production).

@poipoi300
Copy link

I tried setting it to the local address and that worked as well. You'll be able to access it from other machines without hassle that way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants