Files
Genarrative/server-rs/crates/api-server/src
lhk229 623afdcd3c 修复 BgFilter body-read 失败被误记为 502/5xx
response.chunk() 在 HTTP 状态已成功后中断,属于「读 body 时链路断裂」
的传输层故障,但原先只抛 BAD_GATEWAY+message,外部 API 失败审计取不到
transport/timeout/upstreamStatus,回落 Some(502) → statusClass 5xx,
漏掉了 transport 场景。

- 新增 editor_image_removal_body_read_error:timeout 走 504、其余 502,
  统一带 transport/timeout/latencyMs/rawExcerpt,审计正确归类为 transport。
- read_editor_image_removal_response_bytes 加 request_started_at,BgFilter
  与 birefnet 两条读体路径都透传,chunk 失败可算出 latencyMs。
- BgFilter 空 body 补 latencyMs,与 Aliyun 兜底口径对齐。
- 补两个回归测试覆盖 body-read 传输故障与 timeout 分类。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-09 09:16:56 +00:00
..
2026-06-25 20:10:18 +08:00
2026-06-07 22:20:58 +08:00
2026-06-22 15:11:33 +08:00
2026-07-04 12:03:58 +08:00
2026-06-08 21:05:37 +08:00
1
2026-06-05 23:41:24 +08:00
1
2026-05-14 14:21:17 +08:00
2026-06-11 15:55:23 +08:00
1
2026-04-28 19:36:39 +08:00
1
2026-04-30 17:49:07 +08:00
2026-06-25 20:10:18 +08:00
1
2026-04-28 10:57:40 +08:00
1
2026-05-08 11:44:42 +08:00
1
2026-04-30 17:49:07 +08:00
1
2026-04-27 14:23:19 +08:00
1
2026-05-14 14:21:17 +08:00
2026-06-08 21:05:37 +08:00
2026-07-05 17:42:27 +08:00
2026-06-08 21:05:37 +08:00
2026-06-11 15:55:23 +08:00
2026-06-08 21:05:37 +08:00
2026-06-25 20:10:18 +08:00
1
2026-04-30 17:49:07 +08:00
2026-06-22 15:11:33 +08:00
1
2026-05-14 14:21:17 +08:00
2026-06-07 22:20:58 +08:00
2026-06-07 22:20:58 +08:00
2026-06-25 20:10:18 +08:00
1
2026-05-08 21:46:11 +08:00
2026-06-08 21:05:37 +08:00
2026-06-07 22:20:58 +08:00