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
The issue you're experiencing, where a script node in a custom workflow returns null for a custom file uploaded URL, might be due to the variable not being correctly retrieved from the variable_pool. This can happen if the variable selector used in the script node does not match any existing variable in the variable_pool.
To troubleshoot this, ensure that the variable selector in your script node is correctly configured to match the variable name used in the "start" node. If the variable is not found, the script node will return null, as indicated by the following code snippet:
variable=self.graph_runtime_state.variable_pool.get(variable_selector.value_selector)
ifvariableisNone:
returnNodeRunResult(
status=WorkflowNodeExecutionStatus.FAILED,
inputs=variables,
error=f"Variable `{variable_selector.value_selector}` not found",
)
This snippet shows that if the variable is not found, the node execution will fail, and the input argument will be null [1]. Double-check the variable names and ensure they are consistent across your workflow nodes.
Self Checks
Dify version
0.10
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
Got the url
❌ Actual Behavior
Got null
The text was updated successfully, but these errors were encountered: