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

Web Search Failure: Persistent API Timeout During Search Request

Open gpechieu opened this issue 7 months ago • 5 comments

Bug Description No working web search
Let me search for more specific information about crypto trading basics. ⎿ API Error (Request timed out.) · Retrying in 1 seconds… (attempt 1/10)
⏺ Web Search("how cryptocurrency trading pairs price movement works basics order book bid ask") ⎿ Did 0 searches in 61s

Environment Info

  • Platform: macos
  • Terminal: vscode
  • Version: 1.0.11
  • Feedback ID: 268a36a1-cbcd-4810-bad4-b481d5deb3a4

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:984:15)\n    at wrappedFn (node:internal/errors:538:14)\n    at checkExecSyncError (node:child_process:891:11)\n    at execSync (node:child_process:963:15)\n    at JZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:683:2402)\n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:11763\n    at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n    at LU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10909)\n    at HG (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:582:10355)\n    at lO2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2042:4758)","timestamp":"2025-06-04T22:50:43.204Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1409:418\n    at Object.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:26276)\n    at MF9.useMemo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:46:15576)\n    at AW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1409:312)\n    at ZE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:142:19803)\n    at WT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:42551)\n    at DT (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38100)\n    at s$ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:38028)\n    at LE (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:37882)\n    at vW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:144:34972)","timestamp":"2025-06-04T22:51:41.910Z"},{"error":"ShellError: Shell command failed\n    at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1547:1326)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async pZ5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:19078)\n    at async YK1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:17664)\n    at async dZ5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16706)\n    at async hZ5 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16356)\n    at async oe (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:15392)\n    at async oe (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n    at async oe (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n    at async oe (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)","timestamp":"2025-06-04T22:52:45.866Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.44: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_013DGi4K4Z4ThG3nwK9yzcgw. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Y5.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1367:12578)\n    at Jw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:2082)\n    at Jw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1382:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async ve.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20326)\n    at async ve (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:12078)\n    at async bz2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:20189)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:16876\n    at async Ro1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1654:5204)\n    at async fd (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-

Note: Error logs were truncated.

gpechieu avatar Jun 04 '25 23:06 gpechieu

Same issue.

mintmcqueen avatar Jun 05 '25 02:06 mintmcqueen

May be related to #1438, I'm facing both issues, they both started after a recent update, I think 1.0.8

AVGVSTVS96 avatar Jun 05 '25 05:06 AVGVSTVS96

Downgrade to 1.0.6 to workaround this

AVGVSTVS96 avatar Jun 05 '25 22:06 AVGVSTVS96

I'm also having this issue; a downgrade from 1.0.17 back to 1.0.6 (on an M1 Mac) fixed the issue for now (persistent timeouts with backoff retry during web search tool call)

intertwine avatar Jun 07 '25 00:06 intertwine

could you please fix this? @reverie & @rboyce-ant

Same issue as #1802

younes-io avatar Jun 08 '25 21:06 younes-io