[Bug] Claude Code is not working since Sept 30 | Anthropic API Error: Unexpected Usage Policy Violation Blocking Existing Session
Bug Description
See I have been working with Claude and same files have been worked by Claude since last 50-60 days
Today, I have scheduled for a version release and at morning (IST) - So many changes were done. During the last phase of that - Claude got stuck with a json error(corrupted ? - if its corrupted, claude only edited and added the content too)
I waiited for 6hrs.
Evening -i tried again - thinking it might be a glitch in claude nand would get fixed. DIdnt get ficxded.
Tried multiple session restarts,
Tried open new claude and used /resume - it didnt worked
Deleted claude cache and /tmp content of claude as per claude web suggestion.
Finally and nothinhg worked, I tried a new session - its double work as I have to start over and my plans have to be changed and blogs have been moved out now
Now, it keeps saying below error
⎿ 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.
Chat with claude help bot in website told that there is a ongoing issue. I waited . WHen the status of that error ius shown as fixed. I tried again.
Still same issue. I cna see other people also reporting teh same in twitter.
I am, a max user. Atleastr value for money.
And please show genuine errorr message at-least - instead of this policy violation - How can that happen - when claude itself had generated the readme file content?
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.102
- Feedback ID: 6b82c8d2-86a5-4b28-b8a0-faa5d2c546fb
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:481:14)\n at Socket.emit (node:events:518:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:561:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n at Readable.push (node:internal/streams/readable:392:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-09-30T15:03:01.271Z"},{"error":"Error: Failed to install new version of claude: npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/.claude-code-ujU140Dv\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/.claude-code-ujU140Dv'\nnpm error A complete log of this run can be found in: /Users/sreenath/.npm/_logs/2025-09-30T15_03_02_547Z-debug-0.log\n at MG1 (file:///Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3572:12080","timestamp":"2025-09-30T15:03:02.712Z"},{"error":"Error: Failed to install new version of claude: npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/.claude-code-ujU140Dv\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/.claude-code-ujU140Dv'\nnpm error A complete log of this run can be found in: /Users/sreenath/.npm/_logs/2025-09-30T15_08_11_851Z-debug-0.log\n at MG1 (file:///Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1973:393)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///Users/sreenath/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3572:12080","timestamp":"2025-09-30T15:08:12.236Z"}]
⎿ 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.
claude-doctor
⎿ 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.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗