[Bug] Anthropic API Error: Usage Policy violation on JWT token test requests
Resolved 💬 3 comments Opened Nov 5, 2025 by sorcrr2023 Closed Nov 9, 2025
Bug Description
keep getting " 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." - im testing my auth related changes and require jwt token to run tests? never happened before. seems like a bug.
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.0.33
- Feedback ID: 7455a0bf-aac6-482a-895d-a5505c8fd800
Errors
[{"error":"ySQ: Diagnostics file path mismatch: expected C:\\Users\\jchau\\Git\\Sorcrr\\sorcrr-backend-gcp\\PHASE2_DAY3_COMPLETE.md, got file://c:\\users\\jchau\\git\\sorcrr\\sorcrr-backend-gcp\\phase2_day3_complete.md/)\n at MO.beforeFileEdited (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1703:22068)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1835:2452)\n at async n85 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:27467)\n at async ZrA (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:24531)\n at async l85 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:23383)\n at async c85 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:22866)\n at async CS (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:19458)\n at async CS (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:20759)\n at async CS (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:20759)","timestamp":"2025-11-05T08:35:42.935Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at OD (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1251:4413)\n at file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1251:4141\n at Array.map (<anonymous>)\n at vF (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1251:4132)\n at q$Q (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1636:15656)\n at pw (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:72:19414)\n at Mt (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:74:42806)\n at b9 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:74:38347)\n at Up (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:74:38275)\n at B$ (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:74:38129)","timestamp":"2025-11-05T08:40:55.890Z"},{"error":"Error: Request was aborted.\n at Zi._createMessage (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:208:4515)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at listOnTimeout (node:internal/timers:549:9)\n at process.processTimers (node:internal/timers:523:7)","timestamp":"2025-11-05T08:42:16.696Z"},{"error":"Error: Request was aborted.\n at Zi._createMessage (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:208:4515)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-11-05T08:43:47.439Z"},{"error":"ySQ: Diagnostics file path mismatch: expected C:\\Users\\jchau\\Git\\Sorcrr\\sorcrr-ai-service-gcp\\Dockerfile, got file://c:\\users\\jchau\\git\\sorcrr\\sorcrr-ai-service-gcp\\dockerfile/)\n at MO.beforeFileEdited (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1703:22068)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1832:624)\n at async n85 (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:27467)\n at async ZrA (file:///C:/Users/jchau/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1989:24531)\n at asy
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗