Merge pull request #1856 from yashsinghcodes/nightly

fix: subflow stream result returning 400
This commit is contained in:
Yash Singh
2025-10-29 13:00:07 +05:30
committed by GitHub
+5
View File
@@ -2116,6 +2116,11 @@ func handleSubflowPoller(ctx context.Context, workflowExecution shuffle.Workflow
}
}
if len(data) == 0 {
log.Printf("[WARNING] Stream result missing execution ID and authorization; injecting them from workflow execution")
data = fmt.Sprintf(`{"execution_id": "%s", "authorization": "%s"}`, workflowExecution.ExecutionId, workflowExecution.Authorization)
}
req, err := http.NewRequest(
"POST",
streamResultUrl,