From 96b1538b3e9f42d8a3647aae314bc95374c7e7d3 Mon Sep 17 00:00:00 2001 From: Stephen Hu Date: Tue, 12 Aug 2025 12:27:22 +0800 Subject: [PATCH] Fix:HTTP request component failed to retrieve the corresponding value (#9399) ### What problem does this PR solve? https://github.com/infiniflow/ragflow/issues/9385 Based on my understanding, I think checking empty string is fine ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --------- Co-authored-by: Kevin Hu --- agent/component/invoke.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/component/invoke.py b/agent/component/invoke.py index a4aa98191..cb313925b 100644 --- a/agent/component/invoke.py +++ b/agent/component/invoke.py @@ -57,7 +57,7 @@ class Invoke(ComponentBase, ABC): def _invoke(self, **kwargs): args = {} for para in self._param.variables: - if para.get("value") is not None: + if para.get("value"): args[para["key"]] = para["value"] else: args[para["key"]] = self._canvas.get_variable_value(para["ref"]) @@ -139,4 +139,4 @@ class Invoke(ComponentBase, ABC): assert False, self.output() def thoughts(self) -> str: - return "Waiting for the server respond..." \ No newline at end of file + return "Waiting for the server respond..."