claude-code - 💡(How to fix) Fix [BUG] Constant AUP violation errors when Claude Code reads files (example included) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48723Fetched 2026-04-16 06:52:47
View on GitHub
Comments
2
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×5commented ×2cross-referenced ×1

Error Message

Read this file. Read .tmp-160387-p1-content.txt API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Try rephrasing the request or attempting a different approach. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.

Code Example

[<0046004B00440055004400460057004800550003>-26<000B00520055000F0003>-25<0049005200550003>-25<002700520051004E0048005C000F0003>-25<005800510047004800550051004800440057004B000C0003>]TJ
T*

---



---

Read this file.
Read .tmp-160387-p1-content.txt
API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Try rephrasing the request or attempting a different approach. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.
RAW_BUFFERClick to expand / collapse

.tmp-160387-p1-content.txt

Edit/TL;DR

I was able to distill the ostensibly offending content in this example. Pasting the following string into a Claude Chat window with Opus 4.6 causes an AUP violation.

[<0046004B00440055004400460057004800550003>-26<000B00520055000F0003>-25<0049005200550003>-25<002700520051004E0048005C000F0003>-25<005800510047004800550051004800440057004B000C0003>]TJ
T*

The above translates to "CHARACTER OR FOR DONKEY UNDERNEATH". It is from a Hasbro Shrek toy ad.

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

In the past week, Claude Code has become unusable due to a majority of prompts being incorrectly flagged as AUP violations. While other users have reported similar issues, none seem to have a reproducible example, so I am opening this issue to provide a minimal reprex.

The included text file contains contents from a publicly available .pdf file advertising a Hasbro children's toy. I intentionally chose the least offensive thing possible, but the errors are not specific to this file. In the latest Claude for VSCode version, Claude throws an AUP error after merely being asked to read this file. I replicate this in a new chat session in a new repo with nothing else in it.

What Should Happen?

Claude should not throw an AUP error.

Error Messages/Logs

Steps to Reproduce

Create a new repo with the provided file. Select the file in VSCode. Prompt Claude to "read this file". See below.

.tmp-160387-p1-content.txt Alternative link: https://github.com/Balearica/claude-bug-files/blob/master/.tmp-160387-p1-content.txt

Read this file.
Read .tmp-160387-p1-content.txt
API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Try rephrasing the request or attempting a different approach. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.109

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

I am using VSCode extension (Version: 2.1.109). This happens whether using the terminal in VSCode or the Chat window. I could not replicate this exactly using the claude CLI alone, but similar errors are eventually thrown, it just takes slightly longer.

I understand issues of this nature are routinely closed/hand-waved away as transient/probabilistic issues. This is not. This replicates on a new repo in a new chat. Virtually every chat I have made in the last few days has resulted in the chat being flagged for AUP violations. The product is unusable.

extent analysis

TL;DR

The issue can be mitigated by trying a different approach or rephrasing the request to avoid triggering the AUP violation.

Guidance

  • The provided string seems to be triggering an AUP violation due to its translation to "CHARACTER OR FOR DONKEY UNDERNEATH", which might be misinterpreted by the Claude Code's AUP policy.
  • Try rephrasing the request or using a different file to test if the issue is specific to this particular string or file.
  • As suggested in the error message, try running /model claude-sonnet-4-20250514 to switch models and see if the issue persists.
  • If the issue is still present, try to isolate the specific part of the string or file that is causing the AUP violation.

Example

No code snippet is provided as the issue seems to be related to the specific string or file being used.

Notes

The issue might be related to the Opus model used in Claude Code, and switching to a different model might resolve the issue. However, without further information, it's difficult to determine the root cause.

Recommendation

Apply workaround: Try rephrasing the request or using a different file to test if the issue is specific to this particular string or file. This is because the error message suggests that the issue might be resolved by trying a different approach.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING