Skip to content

Commit b84bb41

Browse files
dlmu-lq李强04autofix-ci[bot]
authored
fix: langgenius#24292 HTTP Request Node Unable to Access File from Start Node When Using Remote URL in Workflow API Call (langgenius#24293)
Co-authored-by: 李强04 <liqiang04@gaotu.cn> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 1d09708 commit b84bb41

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

api/core/workflow/nodes/http_request/executor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
from configs import dify_config
1414
from core.file import file_manager
15+
from core.file.enums import FileTransferMethod
1516
from core.helper import ssrf_proxy
1617
from core.variables.segments import ArrayFileSegment, FileSegment
1718
from core.workflow.entities.variable_pool import VariablePool
@@ -228,7 +229,9 @@ def _init_body(self):
228229
files: dict[str, list[tuple[str | None, bytes, str]]] = {}
229230
for key, files_in_segment in files_list:
230231
for file in files_in_segment:
231-
if file.related_id is not None:
232+
if file.related_id is not None or (
233+
file.transfer_method == FileTransferMethod.REMOTE_URL and file.remote_url is not None
234+
):
232235
file_tuple = (
233236
file.filename,
234237
file_manager.download(file),

0 commit comments

Comments
 (0)