[Bug] Anthropic API Error: No assistant message found
Bug Description
I sent a normal prompt, and got this error, agent continued working normal, just this error showed:\
\
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Dd (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:12905)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at runNextTicks (node:internal/process/task_queues:69:3)
at process.processTimers (node:internal/timers:520:9)
at async file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:21696
at async Wo0 (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:2011)
at async yW (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:21552)
at async s9B (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3363:200)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Dd (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:12905)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at runNextTicks (node:internal/process/task_queues:69:3)
at process.processTimers (node:internal/timers:520:9)
at async file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:21696
at async Wo0 (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:2011)
at async yW (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:21552)
at async s9B (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3363:200)
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: No assistant message found
at Dd (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3356:12905)
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.0.24
- Feedback ID: 83f1986c-5782-4d0f-80c2-5747303ad1b0
Errors
[{"error":"Error: Request was aborted.\n at by.makeRequest (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:3850)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-10-21T08:51:48.699Z"},{"error":"Error: Request was aborted.\n at by.makeRequest (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:3850)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-10-21T08:51:48.699Z"},{"error":"Error: Request was aborted.\n at by.makeRequest (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:357:3850)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processTimers (node:internal/timers:520:9)","timestamp":"2025-10-21T08:51:48.699Z"},{"error":"Error: Request was aborted.\n at pp._createMessage (file:///home/thecondoriv/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:207:4515)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-21T08:51:58.502Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗