When using comfyUI, the 127.0.0.1:8188 service is started, but when requesting the service, it keeps reporting the error urlopen error [Errno 111] Connection refused, but in other environments, the code works fine.
Please ask in #|general , this is to get support from RunPod and this is not a RunPod issue, its something wrong with your serverless worker. You most likely didn't wait long enough for the service to come up before trying to send requests to it.
There is no restriction, it takes longer than 10s for services to start up sometimes, so use the link I sent to check whether the port is up instead of ignoring the advice.
The code does make a difference, I am starting the port service internally at runpod.serverless.start({"handler": job}), whereas the code you gave, including https://github.com/blib-la/runpod-worker-comfy都是在runpod. serverless.start externally starts the port service
I was referring to the https://github.com/fofr/cog-comfyui/blob/main/predict.py example from replicate, and was going to do a quick run through to see and merge the setup part of it into the handler function, but ran into this problem.