API Error: 500 {"type":"error","error":{"type":"api_error","...

Resolved 💬 3 comments Opened Feb 10, 2026 by privacyguy123 Closed Feb 10, 2026

Bug Description
API Error: 500 {"type":"error","error":{"type":"api_error","message":"Internal server error"},"request_id":"req_011CY14Hn8FPxaQwGhGkGGxm"}

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.38
  • Feedback ID: 16e67dc2-36a0-447f-b4bc-48738bbbef81

Errors

[{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (23 -> 23 messages). Message structure: [0] user; [1] assistant(id=msg_01MJf8azZu8nGMPUyUGYW8fZ, tool_uses=[toolu_01J2DFLDxPifxJ1EY4Zz3zdR,toolu_01SQTP7aHtwHVygmfNpnhwhr,toolu_018ox5J2F7vTTTcH2HgmtCzM,toolu_01Whefcw7PoVtcLtUMdjW3hV,toolu_01AN3L1ejTLt7Hn7knKzGcyb,toolu_01QCADJo1JfFtz1P1dUVrr4t]); [2] user(tool_results=[toolu_01J2DFLDxPifxJ1EY4Zz3zdR,toolu_01SQTP7aHtwHVygmfNpnhwhr,toolu_018ox5J2F7vTTTcH2HgmtCzM,toolu_01Whefcw7PoVtcLtUMdjW3hV,toolu_01AN3L1ejTLt7Hn7knKzGcyb,toolu_01QCADJo1JfFtz1P1dUVrr4t]); [3] assistant(id=msg_019nNqhKaBnhEqYV1j53voxe, tool_uses=[toolu_01YY5Za4TGSQnATpzoBLJnFz,toolu_01YPeyhDeYK76KzdywAyeXL8]); [4] user(tool_results=[toolu_01YPeyhDeYK76KzdywAyeXL8]); [5] assistant(id=msg_01UUSH5QfLdHu7gpRPL8qFYS, tool_uses=[toolu_01LzzCcGtyjjwzDx1HsFrrRp,toolu_01RuqvJJgwnSFapmABJWZSHQ,toolu_014PoP3gWoVSnDae1Rzp7SUV,toolu_01HJGvaGDRXgNAd5y6yhTBRM,toolu_01Qo1xz7Yc21FLGfeX2dprEL]); [6] user(tool_results=[toolu_01Qo1xz7Yc21FLGfeX2dprEL]); [7] assistant(id=msg_01PjssGtzBhxt511cJxCc8kZ, tool_uses=[toolu_01YPJPvnrskHQdKoMuzeFkWV]); [8] user(tool_results=[toolu_01YPJPvnrskHQdKoMuzeFkWV]); [9] assistant(id=msg_01FkpsgY9KqFRzYzzahTh4Pi, tool_uses=[toolu_018tymcTBjMhfAtmjDaXQpA4,toolu_01S4Zjz6piP2yfgjRxNQEYjW,toolu_0121cFjLsnLPB7ksj6q1tqeK]); [10] user(tool_results=[toolu_018tymcTBjMhfAtmjDaXQpA4]); [11] assistant(id=msg_01DxJ3GUM4cNmbt5Gu5w6iaz, tool_uses=[toolu_01NJgvFPLS7omjpxV5A3Fote]); [12] user(tool_results=[toolu_01NJgvFPLS7omjpxV5A3Fote]); [13] assistant(id=f6fbe24a-e334-4a7b-b4ae-75f5a36928dc, tool_uses=[]); [14] user; [15] assistant(id=46aa60c2-7db2-481c-9310-7921171984ad, tool_uses=[]); [16] user; [17] assistant(id=0a4a7336-b19a-408a-b029-83ddbfeeab08, tool_uses=[]); [18] user; [19] assistant(id=dd4a91db-0da3-43e0-a5eb-72ce09ebba7a, tool_uses=[]); [20] user; [21] assistant(id=a1b5a56e-98ff-4085-ba7f-2f0c2d1b4bef, tool_uses=[]); [22] user\n    at XtI (B:/~BUN/root/claude.exe:6135:8447)\n    at UtI (B:/~BUN/root/claude.exe:5719:6651)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T20:33:27.863Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CY12V7CnvshRqmrphnjMj\"}\n    at generate (B:/~BUN/root/claude.exe:316:9040)\n    at makeRequest (B:/~BUN/root/claude.exe:355:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T20:33:52.644Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"API\"\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:62:1142)\n    at A (B:/~BUN/root/claude.exe:11:7851)\n    at QZD (B:/~BUN/root/claude.exe:1133:3823)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T20:33:52.645Z"},{"error":"Error: 500 {\"type\":\"error\",\"error\":{\"type\":\"api_error\",\"message\":\"Internal server error\"},\"request_id\":\"req_011CY12V9ukytNnWXZPCmwMn\"}\n    at generate (B:/~BUN/root/claude.exe:316:9040)\n    at makeRequest (B:/~BUN/root/claude.exe:355:5435)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-02-10T20:33:53.793Z"},{"error":"Error: ensureToolResultPairing: repaired missing tool_result blocks (23 -> 23 messages). Message structure: [0] user; [1] assistant(id=msg_01MJf8azZu8nGMPUyUGYW8fZ, tool_uses=[toolu_01J2DFLDxPifxJ1EY4Zz3zdR,toolu_01SQTP7aHtwHVygmfNpnhwhr,toolu_018ox5J2F7vTTTcH2HgmtCzM,toolu_01Whefcw7PoVtcLtUMdjW3hV,toolu_01AN3L1ejTLt7Hn7knKzGcyb,toolu_01QCADJo1JfFtz1P1dUVrr4t]); [2] user(tool_results=[toolu_01J2DFLDxPifxJ1EY4Zz3zdR,toolu_01SQTP7aHtwHVygmfNpnhwhr,toolu_018ox5J2F7vTTTcH2HgmtCzM,toolu_01Whefcw7PoVtcLtUMdjW3hV,toolu_01AN3L1ejTLt7Hn7knKzGcyb,toolu_01QCADJo1JfFtz1P1dUVrr4t]); [3] assistant(id=msg_019nNqhKaBnhEqYV1j53voxe, tool_uses=[toolu_01YY5Za4TGSQnATpzoBLJnFz,toolu_01YPeyhDeYK76KzdywAyeXL8]); [4] user(tool_results=[toolu_01YPeyhDeYK76KzdywAyeXL8]); [5] assistant(id=msg_01UUSH5QfLdHu7gpRPL8qFYS, tool_uses=[toolu_01LzzCcGtyjjwzDx1HsFrrRp,toolu_01RuqvJJgwnSFapmABJWZSHQ,toolu_014PoP3gWoVSnDae1Rzp7SUV,toolu_01HJGvaGDRXgNAd5y6yhTBRM,toolu_01Qo1xz7Yc21FLGfeX2dprEL]); [6] user(tool_results=[toolu_01Qo1xz7Yc21FLGfeX2dprEL]); [7] assistant(id=msg_01PjssGtzBhxt511cJxCc8kZ, tool_uses=[toolu_01YPJPvnrskHQdKoMuzeFkWV]); [8] user(tool_results=[toolu_01YPJPvnrskHQdKoMuzeFkWV]); [9] assistant(id=msg_01FkpsgY9KqFRzYzzahTh4Pi, tool_uses=[toolu_018tymcTBjMhfAtmjDaXQpA4,toolu_01S4Zjz6piP2yfgjRxNQEYjW,toolu_0121cFjLsnLPB7ksj6q1tqeK]); [10] user(tool_results=[toolu_018tymcTBjMhfAtmjDaXQpA4]); [11] assistant(id=msg_01DxJ3GUM4cNmbt5Gu5w6iaz, tool_uses=[toolu_01NJgvFPLS7omjpxV5A3Fote]); [12] user(tool_results=[toolu_01NJgvFPLS7omjpxV5A3Fote]); [13] assistant(id=f6fbe24a-e334-4a7b-b4ae-75f5a36928dc, tool_uses=[]); [14] user; [15] assistant(id=46aa60c2-7db2-481c-9310-7921171984ad, tool_uses=[]); [16] user; [17…

Note: Content was truncated.

View original on GitHub ↗

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