[Bug] Anthropic API Error: Usage Policy violation on non-policy-violating prompts

Resolved 💬 5 comments Opened Apr 11, 2026 by lastdomovoi Closed May 24, 2026

Bug Description
Various prompts or either claude-code commands have beed banned with no reason: "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. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models."

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.100
  • Feedback ID: e231052d-fe84-4a42-9eb7-fa3cd28703f2

Errors

[{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at KYH (/$bunfs/root/src/entrypoints/cli.js:1466:33932)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:36:55.471Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:13352)\n    at emit (node:events:92:22)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:3321)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async by6 (/$bunfs/root/src/entrypoints/cli.js:435:3803)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:15.474Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at queueFailedEvents (/$bunfs/root/src/entrypoints/cli.js:422:2574)\n    at async doExport (/$bunfs/root/src/entrypoints/cli.js:422:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:15.476Z"},{"error":"Error: ECONNREFUSED\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async lr (/$bunfs/root/src/entrypoints/cli.js:417:3770)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:2735:190)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:6360:22458)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:25.463Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at KYH (/$bunfs/root/src/entrypoints/cli.js:1466:33932)\n    at async Z (/$bunfs/root/src/entrypoints/cli.js:5907:11366)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:25.575Z"},{"error":"Error: Plugin MCP server error - mcp-config-invalid: MCP server github invalid: Missing environment variables: GITHUB_PERSONAL_ACCESS_TOKEN\n    at KYH (/$bunfs/root/src/entrypoints/cli.js:1466:33932)\n    at async W (/$bunfs/root/src/entrypoints/cli.js:5907:10596)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:25.576Z"},{"error":"Error: Was there a typo in the url or port?\n    at from (/$bunfs/root/src/entrypoints/cli.js:105:7862)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:113:12934)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:112:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:115:2467)\n    at async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:8160:20246)\n    at async lr (/$bunfs/root/src/entrypoints/cli.js:417:3770)\n    at async Tx5 (/$bunfs/root/src/entrypoints/cli.js:8160:20003)\n    at async Jo7 (/$bunfs/root/src/entrypoints/cli.js:8160:20638)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-11T07:37:25.577Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at <anonymous> (/$b…

Note: Content was truncated.

View original on GitHub ↗

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