Skip to content

Missing Tool Result Block for Tool Use ID toolu_01JVwCTo8KZo6B4iyn9EAVoP #3532

@eitanporat

Description

@eitanporat

Bug Description
i am getting API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.11: tool_use ids were found without
tool_result blocks immediately after: toolu_01JVwCTo8KZo6B4iyn9EAVoP. Each tool_use block must have a corresponding
tool_result block in the next message."}}

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.51
  • Feedback ID: 7af7f1cf-5d42-42e7-affe-1dab7055e477

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at eD (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:712:4489)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13989\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n    at QF (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:13129)\n    at cC (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:11995)\n    at qB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:624:16609)","timestamp":"2025-07-15T07:49:15.461Z"},{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:481: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-15T07:49:16.455Z"},{"error":"Error: Request was aborted.\n    at Ue._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1323:7931)\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:546:9)","timestamp":"2025-07-15T08:02:24.419Z"},{"error":"Error: Request was aborted.\n    at Ue._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1323:7931)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T08:48:08.160Z"},{"error":"Error: Request was aborted.\n    at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\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:546:9)","timestamp":"2025-07-15T08:49:41.479Z"},{"error":"Error: Request was aborted.\n    at Ue._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1323:7931)\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:546:9)","timestamp":"2025-07-15T08:50:48.325Z"},{"error":"Error: Request was aborted.\n    at Ue._createMessage (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1323:7931)\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:546:9)","timestamp":"2025-07-15T08:54:57.932Z"},{"error":"Error: Request was aborted.\n    at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\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:546:9)","timestamp":"2025-07-15T09:09:44.706Z"},{"error":"SyntaxError: Unexpected non-whitespace character after JSON at position 57 (line 6 column 1)\n    at JSON.parse (<anonymous>)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:619:9923\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:14406)\n    at LN2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1348:10474)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T09:16:05.225Z"},{"error":"Error: Request was aborted.\n    at iq.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1332:3838)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-15T09:25:38.002Z

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:corebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions