claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Anthropic API: Unexpected Token Truncation in Claude Opus Conversation

Open duribebe opened this issue 1 year ago • 5 comments

Bug Description Claude Opus 4 just stops for no reason and I have to continiously write "continue" but still, barely gets to 300 tokens and then stops again.

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.53
  • Feedback ID: 077cd2b4-7f52-4287-b36c-4753aa6ca709

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:482:14)\n    at Socket.emit (node:events:507:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:559:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n    at Readable.push (node:internal/streams/readable:390:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-17T05:02:17.827Z"}]

duribebe avatar Jul 17 '25 05:07 duribebe

Currently being investigated - anthropic knows about this.

https://status.anthropic.com/

Just going to have to wait and code manually lol.

1AboveNomi avatar Jul 17 '25 05:07 1AboveNomi

Same here

edwin-anderson avatar Jul 17 '25 05:07 edwin-anderson

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2989
  2. https://github.com/anthropics/claude-code/issues/4566
  3. https://github.com/anthropics/claude-code/issues/3780

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 16 '25 04:08 github-actions[bot]

This issue has been automatically closed as a duplicate of #2989.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Aug 20 '25 09:08 github-actions[bot]

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.

github-actions[bot] avatar Aug 28 '25 14:08 github-actions[bot]