Files
Genarrative/server-rs/crates
lhk229 a701fa0240 抠图错误分类下沉到 platform-matting,BFF 不再从中文 message 反推
外部供应商协议归属应留在 platform-* 层。此前 api-server 从中文错误字符串
contains("timeout") / find("HTTP ") 反推超时、HTTP 状态与 transport,违反分层。
- MattingError::Upstream 改为结构化 UpstreamFailure,携带 timeout/transport/
  upstream_status,在错误发生处(reqwest is_timeout、HTTP 状态、响应体不可用)直接捕获
- 新增 external_call_attempted/is_timeout/is_transport/upstream_status 访问器
- 20 处 Upstream 构造点改用 upstream_transport_error/upstream_http_error/
  upstream_response_error,分类语义不变
- aliyun_matting.rs 删除三个字符串解析 helper,直接读结构化分类;审计 JSON 键
  (timeout/transport/upstreamStatus/externalCallAttempted)完全不变,无功能损失
- 分类单测下沉到 platform-matting,BFF 侧改测映射

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 09:16:32 +00:00
..
2026-06-11 23:06:41 +08:00
1
2026-05-10 13:18:46 +08:00