You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm not sure if this is a problem with my configuration but was wondering if you might be able to offer some guidance. I'm running comfyui with launch parameters that use --listen 0.0.0.0 and --port 8188. When trying to use the xyz grid node, I get the error below
Traceback (most recent call last):
File "D:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\StabilityMatrix\Data\Packages\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:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-browser\nodes\xyz_plot.py", line 140, in run
queue_new_prompt(new_prompt)
File "D:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\comfyui-browser\nodes\xyz_plot.py", line 109, in queue_new_prompt
return http_client().post(SERVER_BASE_URL + '/prompt', data=data, proxies=proxies)
File "D:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\requests\sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
File "D:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "D:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "D:\StabilityMatrix\Data\Packages\ComfyUI\venv\lib\site-packages\requests\adapters.py", line 700, 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 0x0000018323182A70>: Failed to establish a new connection: [WinError 10049] The requested address is not valid in its context'))
I was able to troubleshoot and narrow down that the following lines of code in the utils.py file in the root directory of the comfyui-browser custom node seem to be the issue. I'm able to get it to work if I change the following lines from
SERVER_BASE_URL = f'http://{args.listen}:{args.port}'
# To support IPv6
if ':' in args.listen:
SERVER_BASE_URL = f'http://[{args.listen}]:{args.port}'
to
SERVER_BASE_URL = f'[my host ip address]:{args.port}'
# To support IPv6
if ':' in args.listen:
SERVER_BASE_URL = f'http://[my host ip address]:{args.port}'
I'm not super familiar with development and kind of stumbling around so I'm not exactly sure how to fix this beyond the current fix of modifying the utils.py file which is fine for the moment, but thought I might ask if you knew of a better fix. Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm not sure if this is a problem with my configuration but was wondering if you might be able to offer some guidance. I'm running comfyui with launch parameters that use --listen 0.0.0.0 and --port 8188. When trying to use the xyz grid node, I get the error below
I was able to troubleshoot and narrow down that the following lines of code in the utils.py file in the root directory of the comfyui-browser custom node seem to be the issue. I'm able to get it to work if I change the following lines from
to
I'm not super familiar with development and kind of stumbling around so I'm not exactly sure how to fix this beyond the current fix of modifying the utils.py file which is fine for the moment, but thought I might ask if you knew of a better fix. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions