Missing Tool Result Block for Tool Use ID toolu_014jkovWfT7ErX1UxAKuxGPs

Resolved 💬 3 comments Opened Jul 21, 2025 by shawon5ice Closed Aug 19, 2025

Bug Description
API Error: 400 {"type":"error","error":{"type":"invalid_request_error",
"message":"messages.16: tool_use ids were found without tool_result
blocks immediately after: toolu_014jkovWfT7ErX1UxAKuxGPs. 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.27
  • Feedback ID: 619bee24-6038-45ee-963a-98e952226c30

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:888:11)\n    at execSync (node:child_process:960:15)\n    at wZ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:659:3921)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:9014\n    at Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at QX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:8160)\n    at $S (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:7241)\n    at L9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11408)","timestamp":"2025-07-21T07:19:22.538Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO'\nnpm error A complete log of this run can be found in: /Users/shawon/.npm/_logs/2025-07-21T07_19_23_749Z-debug-0.log\n\n    at sz1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1997:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2434:8427","timestamp":"2025-07-21T07:19:23.937Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO'\nnpm error A complete log of this run can be found in: /Users/shawon/.npm/_logs/2025-07-21T07_19_33_789Z-debug-0.log\n\n    at sz1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1997:392)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2434:8427","timestamp":"2025-07-21T07:19:33.979Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO'\nnpm error A complete log of this run can be found in: /Users/shawon/.npm/_logs/2025-07-21T07_21_48_641Z-debug-0.log\n\n    at sz1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1997:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2434:8427","timestamp":"2025-07-21T07:21:49.261Z"},{"error":"Error: Failed to install new version of claude:  npm error code ENOTEMPTY\nnpm error syscall rename\nnpm error path /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code\nnpm error dest /Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO\nnpm error errno -66\nnpm error ENOTEMPTY: directory not empty, rename '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/claude-code' -> '/Users/shawon/.npm-global/lib/node_modules/@anthropic-ai/.claude-code-9bupgLOO'\nnpm error A complete log of this run can be found in: /Users/shawon/.npm/_logs/2025-07-21T07_21_53_458Z-debug-0.log\n\n    at sz1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1997:392)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2434:8

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗