INNER CODE UNIT · Python
_fetch_object_info
runpod-workers/worker-comfyui · handler.py:413
def _fetch_object_info():
"""
Fetch ComfyUI's /object_info (registered nodes and their input options).
Returns:
dict: The parsed /object_info payload, or None if it can't be fetched.
"""
try:
response = requests.get(f"http://{COMFY_HOST}/object_info", timeout=10)
response.raise_for_status()
return response.json()
except Exception as e:
print(f"worker-comfyui - Warning: Could not fetch /object_info: {e}")
return None
def _loader_field_options(object_info, class_type, field):
"""