Skip to content

[Bug] Anthropic API Error: Missing Tool Result Block #6628

@willfindlay

Description

@willfindlay

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

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.92
  • Feedback ID:

Errors

[{"error":"Error: Request was aborted.\n    at new nW (unknown:1:28)\n    at new r5 (/$bunfs/root/claude:764:1962)\n    at new G6 (/$bunfs/root/claude:764:2750)\n    at makeRequest (/$bunfs/root/claude:781:3840)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-26T23:05:47.098Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1608:795)\n    at useMemo (/$bunfs/root/claude:187:25924)\n    at e6 (/$bunfs/root/claude:1608:687)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)\n    at XX (/$bunfs/root/claude:187:4842)","timestamp":"2025-08-26T23:14:37.276Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1608:795)\n    at useMemo (/$bunfs/root/claude:187:25924)\n    at e6 (/$bunfs/root/claude:1608:687)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)\n    at XX (/$bunfs/root/claude:187:4842)","timestamp":"2025-08-26T23:15:47.936Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: example\n    at <anonymous> (/$bunfs/root/claude:1608:795)\n    at useMemo (/$bunfs/root/claude:187:25924)\n    at e6 (/$bunfs/root/claude:1608:687)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)\n    at XX (/$bunfs/root/claude:187:4842)","timestamp":"2025-08-26T23:17:20.291Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at <anonymous> (/$bunfs/root/claude:1608:795)\n    at useMemo (/$bunfs/root/claude:187:25924)\n    at e6 (/$bunfs/root/claude:1608:687)\n    at JF (/$bunfs/root/claude:187:19415)\n    at bb (/$bunfs/root/claude:189:42805)\n    at CY (/$bunfs/root/claude:189:38347)\n    at Gy (/$bunfs/root/claude:189:38275)\n    at wF (/$bunfs/root/claude:189:38129)\n    at PI (/$bunfs/root/claude:189:35208)\n    at XX (/$bunfs/root/claude:187:4842)","timestamp":"2025-08-26T23:17:31.671Z"},{"error":"MaxFileReadTokenExceededError: File content (99479 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n    at new H$0 (/$bunfs/root/claude:1612:659)\n    at E3G (/$bunfs/root/claude:1621:439)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-26T23:48:37.354Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.130: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_015gmeEV9PJcVRawFz8MFq3q. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSXDa47DrUF2s9H9vPz28\"}\n    at new nW (unknown:1:28)\n    at new r5 (/$bunfs/root/claude:764:1962)\n    at new g10 (unknown:1:28)\n    at generate (/$bunfs/root/claude:764:2419)\n    at makeRequest (/$bunfs/root/claude:781:5329)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-26T23:50:06.348Z"},{"error":"Error\n    at iU (/$bunfs/root/claude:451:1076)\n    at Q1 (/$bunfs/root/claude:452:9952)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:862:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:454:2098)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-26T23:50:31.186Z"}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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