[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.
11 Comments
⎿ 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.
⎿ 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.
Since there is no update, I uninstalled and took latest v2 version. But same issue:
@hackyon-anthropic
<img width="1222" height="772" alt="Image" src="https://github.com/user-attachments/assets/a3eae373-ce6d-4c07-b127-d0d9e2e90c57" />
I just started getting this same behavior this morning for no reason. Not able to understand why either. Here is the stream:
I can assure you nothing I'm doing is against the TOS.. if it is, then no developer can use this. I'm working literally with all code that I wrote myself.
<img width="1888" height="302" alt="Image" src="https://github.com/user-attachments/assets/1b12e67d-b2b1-4dc3-a4dc-275e7654538c" />
same (there is no porn in my global.css i promise)
Happened multiple times to me with 4.5
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
See , it kept coming multiple times and several people had reported it too in social media - tweets, reddit as well.. But no one from Anthropic was interested to fix this. They had even taken issues which got created after this too.
Now, you want to autoclose - do it. Thanks for not checking
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.