[BUG] Claude Crashing with API ERROR while using in command line
Resolved 💬 3 comments Opened May 6, 2026 by vaibhav2809 Closed May 10, 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?
- The exact error: Output blocked by content filtering policy
- Request ID: req_011Camfyu22wubjbhP3YymbT
- Context: happens when generating large Java files (~300+ lines) in Claude Code CLI
API Error: {"type":"error","error":{"details":null,"type":"invalid_request_error","message":"Output blocked by content filtering policy"},"request_id":"req_011CamgFQAeDYcpi4KdkdsVS"}
What Should Happen?
Please fix it. I've been stuck for a week, and since I can't finish my work, my tokens are being wasted. I've tried chunking the response and everything, but no workaround is working.
Error Messages/Logs
API Error: {"type":"error","error":{"details":null,"type":"invalid_request_error","message":"Output blocked by content filtering policy"},"request_id":"req_011CamgFQAeDYcpi4KdkdsVS"}
Steps to Reproduce
I dont know why it is happening maybe with the request id you can reproduce it, i am getting this error again and again
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.131 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗