[Bug] Anthropic API Error: Output blocked by content filtering policy
Resolved 💬 2 comments Opened Mar 15, 2026 by jgardner04 Closed Apr 12, 2026
Bug Description
I am trying to make regular edits in a Python script and keep hitting the API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"Output blocked by content
filtering policy"},"request_id":"req_011CZ5MEsiV6ns7P6vr7BTYP"}
It is unclear what this is or what is causing it. More importantly it is causing CC to stop working on the tasks I need it to complete.
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.1.76
- Feedback ID: 6bf2534b-53d6-486a-a4a3-82c7d9a87b26
Errors
[{"error":"Error: Failed to delete keychain entry\n at Ws7 (/$bunfs/root/src/entrypoints/cli.js:4161:8425)\n at async wY9 (/$bunfs/root/src/entrypoints/cli.js:6875:686)\n at async Oxq (/$bunfs/root/src/entrypoints/cli.js:6875:590)\n at async sF_ (/$bunfs/root/src/entrypoints/cli.js:2394:2197)\n at async DQ_ (/$bunfs/root/src/entrypoints/cli.js:2418:5381)\n at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2438:2730)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T17:43:09.762Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Output blocked by content filtering policy\"},\"request_id\":\"req_011CZ5LnCkUEdwrqQptKmuPh\"}\n at generate (/$bunfs/root/src/entrypoints/cli.js:407:9016)\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:446:5435)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T18:30:38.033Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (5 -> 5 messages). Message structure: [0] user; [1] assistant(id=msg_01CjZ6TA1Ujq8kcEyTiYumZ6, tool_uses=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [2] user(tool_results=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [3] assistant(id=msg_0115xmb4XcANSnYqZsRaJgzr, tool_uses=[toolu_0157HdHFCRtZDnnWTiciApuB]); [4] user(tool_results=[toolu_0157HdHFCRtZDnnWTiciApuB,toolu_01M8XWz9CGXZDbznBZysvzjY,toolu_01QLfU8iDJdHrJXhs9d8nCRZ,toolu_01Y8n7JxubU3aVxrWV3xfceC,toolu_01BrNGfAFJTbpWuJj1E8Ch12])\n at tz9 (/$bunfs/root/src/entrypoints/cli.js:6757:8781)\n at oz9 (/$bunfs/root/src/entrypoints/cli.js:6251:9721)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T18:33:14.141Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (7 -> 7 messages). Message structure: [0] user; [1] assistant(id=msg_01CjZ6TA1Ujq8kcEyTiYumZ6, tool_uses=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [2] user(tool_results=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [3] assistant(id=msg_0115xmb4XcANSnYqZsRaJgzr, tool_uses=[toolu_0157HdHFCRtZDnnWTiciApuB]); [4] user(tool_results=[toolu_0157HdHFCRtZDnnWTiciApuB,toolu_01M8XWz9CGXZDbznBZysvzjY,toolu_01QLfU8iDJdHrJXhs9d8nCRZ,toolu_01Y8n7JxubU3aVxrWV3xfceC,toolu_01BrNGfAFJTbpWuJj1E8Ch12]); [5] assistant(id=msg_01RpmtDmo54GaF4oiXMp3bXf, tool_uses=[]); [6] user\n at tz9 (/$bunfs/root/src/entrypoints/cli.js:6757:8781)\n at oz9 (/$bunfs/root/src/entrypoints/cli.js:6251:9721)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T18:33:34.355Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (9 -> 9 messages). Message structure: [0] user; [1] assistant(id=msg_01CjZ6TA1Ujq8kcEyTiYumZ6, tool_uses=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [2] user(tool_results=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [3] assistant(id=msg_0115xmb4XcANSnYqZsRaJgzr, tool_uses=[toolu_0157HdHFCRtZDnnWTiciApuB]); [4] user(tool_results=[toolu_0157HdHFCRtZDnnWTiciApuB,toolu_01M8XWz9CGXZDbznBZysvzjY,toolu_01QLfU8iDJdHrJXhs9d8nCRZ,toolu_01Y8n7JxubU3aVxrWV3xfceC,toolu_01BrNGfAFJTbpWuJj1E8Ch12]); [5] assistant(id=msg_01RpmtDmo54GaF4oiXMp3bXf, tool_uses=[]); [6] user; [7] assistant(id=msg_01PyPFceKh1jRTcVbVt2qs6y, tool_uses=[]); [8] user\n at tz9 (/$bunfs/root/src/entrypoints/cli.js:6757:8781)\n at oz9 (/$bunfs/root/src/entrypoints/cli.js:6251:9721)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-03-15T18:34:42.157Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (11 -> 11 messages). Message structure: [0] user; [1] assistant(id=msg_01CjZ6TA1Ujq8kcEyTiYumZ6, tool_uses=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [2] user(tool_results=[toolu_01FtsycV8sQyP1PciPG44QgR,toolu_019Rgmx6CjMZEAtxKrze5XyL,toolu_0131aS1nM8YztKUKNG1GrHnX,toolu_01L3myApVJA9fhirESir4FRY]); [3] assistant(id=msg_0115xmb4XcANSnYqZsRaJgzr, tool_uses=[toolu_0157HdHFCRtZDnnWTiciApuB]); [4] user(tool_results=[toolu_0157HdHFCRtZDnnWTiciApuB,toolu_01M8XWz9CGXZDbznBZysvzjY,toolu_01QLfU8iDJdHrJXhs9d8nCRZ,toolu_01Y8n7Jxub…
Note: Content was truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗