この症状は、Claude Code 側が「HTTP 200 は返ってきたのに、中身が期待した応答になっていない」と判断したときに出ています。今回渡された issue はどちらも同じ系統で、非ストリーミングのリクエストに対して event-stream が返ってきた、という報告でした。
自分のケースかどうかを見分ける手がかりは、エラーメッセージの中に content-type event-stream や body is an event stream が含まれているかどうかです。#87842 では「non-streaming request was answered with a stream」と明記されていましたし、#89232 でも同じ文言が出ています。どちらも HTTP 200 で返ってきているのに、レスポンスの形式が合っていません。
issue 87842 の報告はかなり具体的です。server cloudflare、intermediary headers anthropic-* cf-cache-status cf-ray とあり、途中の経路で応答の形が変わっている可能性を疑うように読めます。ただし、ここから「必ずプロキシが原因」とまでは言えません。少なくとも報告者のエラー文は、Claude Code が「proxy or gateway intercepting the request」をチェックするよう促していました。これは症状の中心が「空応答」ではなく「マルチ/ストリーミングの取り違え」にある、という理解のほうが近いです。
実際の報告文は次のとおりです。
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), 72152 bytes, request-id req_011CeBbKAf5TcH9AxP9Lk2dh, 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.
もう一つの issue 89232 も、同じ骨格です。
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.
この段階で言えるのは、「HTTP 200 なのに、非ストリーミングとして扱われたリクエストが event-stream で返ってきている」ことだけです。解決方法は、少なくとも今回の2件の issue からは確認できません。解決済みは 0 件でした。したがって、現時点では“既知の再現症状”として切り分けるのが安全です。
筆者の検証環境は次のとおりでした。
[env_summary]
OS : Linux 3.10.0-1160.76.1.el7.x86_64 (x86_64)
Python : 3.8.13
検証日時 : 2026-09-08T08:51:38+09:00
この症状に当たったときは、まずエラー文の中身をそのまま見て、event-stream が出ているかを確認してください。出ているなら、少なくとも今回の issue 群と同じタイプです。逆に、その語が出ていないなら、別系統の UnexpectedApiResponseError かもしれません。現時点で確認できるのはここまでです。
OS : Linux 3.10.0-1160.76.1.el7.x86_64 (x86_64)
Python : 3.8.13
検証日時 : 2026-09-08T08:51:38+09:00