From 8a69e45b2673b101b0c8baa6a2d635e5477eb917 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 27 Dec 2025 23:06:12 +1300 Subject: [PATCH] Debug output chain nodes with full inputs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- handler.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/handler.py b/handler.py index be46620..e360245 100644 --- a/handler.py +++ b/handler.py @@ -446,17 +446,16 @@ def handler(job: dict) -> dict: # Inject parameters into workflow workflow = inject_wan22_params(workflow, params) - # Debug: print key nodes to verify connections - print("=== Workflow Debug ===") - for node_id in ["117", "116", "115", "158", "140", "156", "144", "145"]: + # Debug: print output chain nodes to verify connections + print("=== Workflow Output Chain ===") + # Check the output chain: 117 <- 116 <- 115 <- 158 <- 140 + for node_id in ["117", "116", "115"]: if node_id in workflow: node = workflow[node_id] - print(f"Node {node_id} ({node['class_type']}):") - for k, v in node['inputs'].items(): - if isinstance(v, list): - print(f" {k}: -> node {v[0]} slot {v[1]}") - else: - print(f" {k}: {repr(v)[:50]}") + print(f"Node {node_id} ({node['class_type']}): {node['inputs']}") + else: + print(f"Node {node_id}: MISSING FROM WORKFLOW!") + print(f"Total nodes in workflow: {len(workflow)}") # Queue workflow client_id = uuid.uuid4().hex