Skip to content

Missing Tool Result Block for Tool Use ID toolu_017ftsPrhKfL8GqWRXXoKbRu #2600

@letzdev81

Description

@letzdev81

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

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.35
  • Feedback ID: aebf8750-0688-48dc-bc5d-284afaa285d2

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 TZ (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at VX (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at nS (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at f9 (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-26T01:36:08.747Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.7: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_017ftsPrhKfL8GqWRXXoKbRu. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Z5.generate (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-06-26T01:36:18.464Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.7: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_017ftsPrhKfL8GqWRXXoKbRu. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Z5.generate (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///Users/jangjaehun/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-06-26T01:44:0

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    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