[Bug] Anthropic API Error: Inconsistent Keyword Filtering for "think"
Resolved 💬 3 comments Opened Sep 2, 2025 by miadisabelle Closed Sep 6, 2025
Bug Description
Usage of the word "think" with "haiku" triggers an infrastructure layer limit that doesn't always apply. Repro step: Tell claude what you think about something and that he should write a note about it.
Environment Info
- Platform: linux
- Terminal: konsole
- Version: 1.0.93
- Feedback ID: e6ce9050-570c-44dd-83ad-7f59767ddb1d
Errors
[{"error":"SyntaxError: Unexpected token 'I', \"I'll help \"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:704:9932\n at Q (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:671:13288)\n at fs2 (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1058:1990)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-27T06:36:42.061Z"},{"error":"AbortError: The operation was aborted\n at abortChildProcess (node:child_process:725:27)\n at EventTarget.onAbortListener (node:child_process:795:7)\n at [nodejs.internal.kHybridDispatch] (node:internal/event_target:831:20)\n at EventTarget.dispatchEvent (node:internal/event_target:766:26)\n at abortSignal (node:internal/abort_controller:370:10)\n at AbortController.abort (node:internal/abort_controller:392:5)\n at Timeout._onTimeout (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:747:75)\n at listOnTimeout (node:internal/timers:581:17)\n at process.processTimers (node:internal/timers:519:7)","timestamp":"2025-08-27T06:50:58.897Z"},{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:704:9932\n at Q (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:671:13288)\n at fs2 (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1058:1990)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-27T06:58:53.066Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:449:20)\n at Object.readFileSync (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:683:11451)\n at WVA (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:744:11205)\n at Object.call (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1767:936)\n at call.next (<anonymous>)\n at HM (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1772:2956)\n at file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1786:1038\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-08-31T06:32:23.321Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:449:20)\n at Object.readFileSync (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:683:11451)\n at WVA (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:744:11205)\n at Object.call (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1767:936)\n at call.next (<anonymous>)\n at HM (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1772:2956)\n at file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1786:1038\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-09-02T07:39:48.704Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CSjCgbibEnssz4UUGXwht\"}\n at P4.generate (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:926:2622)\n at CP.makeStatusError (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at CP.makeRequest (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:943:5314)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-09-02T07:45:35.638Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"This request would exceed your account's rate limit. Please try again later.\"},\"request_id\":\"req_011CSjCgc7emjPRs1Sf8faQQ\"}\n at P4.generate (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:926:2622)\n at CP.makeStatusError (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n at CP.makeRequest (file:///home/jgi/.claude/local/node_modules/@anthropic-ai/cl
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗