anthropics / anthropics/claude-code

[Bug] Non-streaming retry receives event-stream response instead of JSON (HTTP 200)

未关闭
#88,451 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:api area:networking duplicate platform:windows
主要语言
Python
星标
145k
派生
23.1k
PR 合并指标
PR 指标待抓取

描述

**Bug Description**
API Error: API returned an empty or malformed response (HTTP 200) — check for a proxy or gateway intercepting the request. Response: content-type event-stream, body is an event stream (the non-streaming request was answered with a stream), 3935 bytes, request-id req_011CeFKxwXG5NNna6Ute7Nmz, server cloudflare, intermediary headers anthropic-* cf-cache-status cf-ray. This was the non-streaming retry of streaming request (no Anthropic request-id), which failed with: other; 0 stream events received.

**Environment Info**
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.238
- Feedback ID: 11f61404-1140-47bb-92bb-05785dab1d09

**Errors**
```json
[{"error":"UnexpectedApiResponseError: API returned an empty or malformed response (HTTP 200) — check for a proxy or gateway intercepting the request. Response: content-type event-stream, body is an event stream (the non-streaming request was answered with a stream), 3935 bytes, request-id req_011CeFKxwXG5NNna6Ute7Nmz, server cloudflare, intermediary headers anthropic-* cf-cache-status cf-ray. This was the non-streaming retry of streaming request (no Anthropic request-id), which failed with: other; 0 stream events received.\n at (B:/~BUN/root/cli:21840:9380)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-21T05:18:00.311Z"}]
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

The payload names only the bundled CLI location B:/~BUN/root/cli:21840:9380; start by reproducing the non-streaming retry with the recorded response details and tracing that retry path. Done means the retry handles the received event-stream response appropriately instead of reporting an empty or malformed JSON response, while the streaming-failure case remains covered.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
api
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
需要澄清
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。