API Error: Connection closed mid-response. The response above may be incomplete.
Status Closed — duplicate
Reported on v2.1.198
Maintainer reply None cached
Activity 3 comments · opened Jul 24, 2026 · closed Aug 19, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
when i try to do task with claude code right now oftenly claude code come back with a response of "API Error: Connection closed mid-response. The response above may be incomplete."
What Should Happen?
calude code should just happen or work ask i requested
Error Messages/Logs
API Error: Connection closed mid-response. The response above may be incomplete.
Steps to Reproduce
just open a claude code with cursor/vs code and prompt something and it will comeback with this message "API Error: Connection closed mid-response. The response above may be incomplete."
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.198 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗