API Request Blocked: Potential Usage Policy Violation

Resolved 💬 3 comments Opened Jul 5, 2025 by ianlucas1 Closed Dec 10, 2025

Bug Description
I have been getting this error across multiple sessions over the course of a few hours. I have not been attempting anything unusual in this project. I don't know what else to do after all the troubleshooting I could think of. "API Error: Claude Code is unable to respond to this request, which appears to violate our Usage
Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or
start a new session for Claude Code to assist with a different task."

Environment Info

  • Platform: linux
  • Terminal: cursor
  • Version: 1.0.43
  • Feedback ID: 269be95e-9b34-4e16-ac8f-c3009b2feb00

Errors

[{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at RF (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:1184)\n    at file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:912\n    at Array.map (<anonymous>)\n    at WE (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1491:903)\n    at RS2 (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1960:9737)\n    at Ew (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:65:19798)\n    at jP (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:42569)\n    at SP (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38118)\n    at FL (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:38046)\n    at xw (file:///home/ubuntu/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:67:37900)","timestamp":"2025-07-05T22:09:47.968Z"}]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗