文档问题: ble-aggrega变量聚合器在聚合两个http请求结果时只会保留一个body #129

Closed
opened 2026-02-16 05:19:17 -05:00 by yindo · 0 comments
Owner

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

建议修改

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 ## 建议修改 <!-- 如果有具体的修改建议,请在此说明 --> <!-- 感谢您对文档质量的关注! -->
yindo closed this issue 2026-02-16 05:19:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs#129