anthropics / anthropics/claude-code
[Bug] API Error: Non-streaming request receives event-stream response (HTTP 200)
- Langage dominant
- Python
- Étoiles
- 145k
- Forks
- 23.1k
- Métriques de merge des PR
- Métriques de PR en attente
Description
**Bug Description**
I keep getting this error.
⏺ 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), 11945 bytes, request-id req_011CeMjReajcu51wQFzK4QYH, 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: darwin
- Terminal: Apple_Terminal
- Version: 2.1.241
- Feedback ID: 54a29729-ba81-4a4e-8340-1c71009b37a6
**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), 11945 bytes, request-id req_011CeMjReajcu51wQFzK4QYH, 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 (/$bunfs/root/cli:21879:9380)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-08-24T14:29:14.913Z"}]
```
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
The report only identifies the bundled `cli` stack-trace entry at line 21879:9380; begin by reproducing the response-handling failure and tracing that entry. Done means the reported non-streaming request is handled correctly when it receives an event-stream response, with the malformed-response behavior verified.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- api, cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- Active
- Clarté
- À clarifier
- Accessibilité débutants
- 42/100