Repository navigation
Backlog
Labels
bugSomething isn't working
Description
版本号
3.5.1
哪一家 / 哪个地区版本
Trae(插件 agent2api-wasm-trae 0.1.1,上游 api.trae.cn)
同一时间,这一家的官方客户端能正常用吗?
None
你做了什么,看到什么
环境
- Agent2API:3.5.1(Windows)
- 插件:
agent2api-wasm-trae0.1.1,上游api.trae.cn - 客户端:OpenCode(API Key 名
opencode) - 模型:
deepseek-v4.1-flash-max - 账号池:3 个 Trae 账号(用户84924404686 / 用户10116117790 / 用户2975486690),策略
order
现象
从 2026-11-26 17:52 开始,deepseek-v4.1-flash-max 间歇性返回 502,error 固定为「Trae 上游未接受本次请求」。
单条请求的处理过程:账号 用户84924404686 先重发 3 次(间隔 5s)全部 502 → 切到 用户10116117790 → 再切 用户2975486690,三个账号都失败才返回 502。整条请求耗时 29018~36540 ms。
2026-11-27 10:47–11:35 最密集,连续 10 次失败:
2026-11-27 10:50:12 用户84924404686 502 34422ms attempts=3
2026-11-27 10:52:17 用户84924404686 502 31591ms attempts=3
2026-11-27 10:54:49 用户84924404686 502 32103ms attempts=3
2026-11-27 10:59:46 用户84924404686 502 32619ms attempts=3
2026-11-27 11:06:03 用户84924404686 502 31219ms attempts=3
2026-11-27 11:11:34 用户84924404686 502 31891ms attempts=3
2026-11-27 11:19:05 用户84924404686 502 29018ms attempts=2
2026-11-27 11:24:34 用户84924404686 502 33308ms attempts=3
2026-11-27 11:30:07 用户84924404686 502 35121ms attempts=3
2026-11-27 11:35:43 用户84924404686 502 34582ms attempts=3
同一时段其他账号仍有成功请求(用户10116117790 最近成功 11:18:25,用户2975486690 最近成功 11:05:19),不是三个账号同时失效。
关键点:502 没有带上游原始响应
attempt_details 里 bodyBytes 为 null,也没有记录上游响应体或 request-id,只有网关自己生成的文案。无法判断是 Trae 侧限流、风控,还是协议不匹配。命中规则 plugin:trae:transient(连接或服务异常,action=retry_then_switch)。
{
"provider": "trae",
"account": "用户2975486690",
"model": "deepseek-v4.1-flash-max",
"reasoning": "high",
"startedAt": 1795750543247,
"responseAt": null,
"finishedAt": 1795750571130,
"status": 502,
"error": "Trae 上游未接受本次请求",
"retries": [
{ "reason": "按统一错误规则在原账号重发", "status": 502, "delayMs": 5000 },
{ "reason": "按统一错误规则在原账号重发", "status": 502, "delayMs": 5000 },
{ "reason": "按统一错误规则在原账号重发", "status": 502, "delayMs": 5000 }
],
"bodyBytes": null,
"errorPolicy": {
"action": "retry_then_switch",
"kind": "transient",
"ruleId": "plugin:trae:transient",
"ruleName": "连接或服务异常",
"scope": "model"
}
}其它补充
- 同类现象也出现在余额查询:2026-11-27 11:47:54,账号 用户10116117790 的
usage.query返回 503「Trae 上游未接受本次请求」,attempts=4,durationMs=7665。 - 「保存上游原始报文」开关此前未开启,这几次 502 没有响应体;需要的话我可以开启后复现一次补上。
glm-5.3-max、kimi-k3-max也出现过零星 502,但频率远低于deepseek-v4.1-flash-max。- 同时段 WorkBuddy 通道正常,可作对照。
- 尚未尝试切换策略或代理。
Reacted by coderabbitai and wusui
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
coderabbitai commentedon Nov 27, 2026
🔗 Related PRs
#595 - 修复:上游错误统一按候选失败顺延 [open]
#592 - Fix/transient 5修复:上游瞬态 5xx 不再绕过账号/模型顺延xx failover [open]
#648 - 修复路由失败不再顺延:换号预算下限、同一家跳过与失败冷却(#643
#644) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!