mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 12:25:45 -04:00
文档问题: ble-aggrega变量聚合器在聚合两个http请求结果时只会保留一个body #129
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doubleujz on GitHub (Jun 26, 2025).
问题描述
当使用两个http请求,然后进行聚合的时候,聚合的结果只会保留一个body
例如 http请求1的响应:
{
"status_code": 200,
"body": "{"body":"[80]","status_code":0,"headers":"{}","files":null}",
"headers": {
"vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers",
"trace-id": "",
"x-content-type-options": "nosniff",
"x-xss-protection": "0",
"cache-control": "no-cache, no-store, max-age=0, must-revalidate",
"pragma": "no-cache",
"expires": "0",
"content-type": "application/json",
"date": "Thu, 26 Jun 2025 11:31:09 GMT",
"x-cache": "MISS from squid-proxy-7877d5d865-z2vtt",
"x-cache-lookup": "MISS from squid-proxy-7877d5d865-z2vtt:3128",
"transfer-encoding": "chunked",
"connection": "keep-alive"
},
"files": []
}
例如 http请求2的响应:
{
"status_code": 200,
"body": "{"body":"[90]","status_code":0,"headers":"{}","files":null}",
"headers": {
"vary": "Origin, Access-Control-Request-Method, Access-Control-Request-Headers",
"trace-id": "",
"x-content-type-options": "nosniff",
"x-xss-protection": "0",
"cache-control": "no-cache, no-store, max-age=0, must-revalidate",
"pragma": "no-cache",
"expires": "0",
"content-type": "application/json",
"date": "Thu, 26 Jun 2025 11:31:10 GMT",
"x-cache": "MISS from squid-proxy-7877d5d865-dfkv9",
"x-cache-lookup": "MISS from squid-proxy-7877d5d865-dfkv9:3128",
"transfer-encoding": "chunked",
"connection": "keep-alive"
},
"files": []
}
变量聚合器输入
{
"body": "{"body":"[80]","status_code":0,"headers":"{}","files":null}"
}
变量聚合器输出
{ "output": "{"body":"[80]","status_code":0,"headers":"{}","files":null}"}
页面链接
https://github.com/langgenius/dify-docs/blob/main/zh-hans/guides/workflow/node/variable-aggregator.mdx
建议修改