claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Overly Restrictive Content Filtering on User-Generated Code Testing [1 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#50805Fetched 2026-04-20 12:12:34
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×5

Error Message

[{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:49.419Z"},{"error":"Error: Request was aborted.\n at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:58.652Z"}]

Code Example

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:49.419Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:58.652Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description opus keeps doing something that is getting flagged as "maybe against the terms of service" but it definitely isn't. It was testing a python script we wrote together and for whatever reason that was getting flagged. Opus itself was even the entity that chose what to test against the script.

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 2.1.114
  • Feedback ID: 3b64cdf4-be61-4542-a603-23b8fe060f52

Errors

[{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:49.419Z"},{"error":"Error: Request was aborted.\n    at makeRequest (/$bunfs/root/src/entrypoints/cli.js:50:3448)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-19T08:13:58.652Z"}]

extent analysis

TL;DR

Review the python script being tested by opus to ensure it does not inadvertently trigger terms of service flags, despite opus choosing the test parameters.

Guidance

  • Investigate the specific test cases opus is running against the python script to identify potential triggers for the terms of service flag.
  • Verify that the script's behavior aligns with expected outcomes and does not produce unexpected or potentially flagged output.
  • Check for any recent updates or changes in opus or its testing parameters that might be causing the script to be flagged.
  • Consider testing the python script in isolation or with different test parameters to isolate the cause of the flagging.

Example

No specific code example can be provided without more details on the python script or opus's testing parameters.

Notes

The exact cause of the flagging is unclear, and more information about the script and opus's testing process would be necessary for a definitive solution.

Recommendation

Apply workaround: Review and adjust the python script and opus's test parameters to prevent inadvertent triggering of terms of service flags, as the issue seems to stem from the interaction between opus's testing and the script's behavior.

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