claude-code - 💡(How to fix) Fix [Bug] Model generates incorrect solutions requiring excessive correction cycles [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52644Fetched 2026-04-24 06:01:38
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

[{"error":"AxiosError: Request failed with status code 400\n at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n at Unzip.emit (node:events:509:20)\n at endReadableNT (node:internal/streams/readable:1729:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)\n at async df1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:268067)","timestamp":"2026-04-18T20:41:13.406Z"},{"error":"AxiosError: Request failed with status code 400\n at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n at Unzip.emit (node:events:509:20)\n at endReadableNT (node:internal/streams/readable:1729:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)","timestamp":"2026-04-18T20:41:13.773Z"},{"error":"AxiosError: Request failed with status code 401\n at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n at Unzip.emit (node:events:509:20)\n at endReadableNT (node:internal/streams/readable:1729:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async Wa (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:495:4048)\n at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2897:182\n at async Promise.all (index 0)\n at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:6855:22197","timestamp":"2026-04-18T20:41:13.927Z"},{"error":"AxiosError: Request failed with status code 401\n at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n at Unzip.emit (node:events:509:20)\n at endReadableNT (node:internal/streams/readable:1729:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async bqY (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:14511)\n at async y$K (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:15053)","timestamp":"2026-04-18T20:41:14.450Z"},{"error":"AxiosError: Request failed with status code 401\n at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n at Unzip.emit (node:events:509:20)\n at endReadableNT (node:internal/streams/readable:1729:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n at process.processTicksAndRejections (node:internal/process/task_que…

Code Example

[{"error":"AxiosError: Request failed with status code 400\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n    at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)\n    at async df1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:268067)","timestamp":"2026-04-18T20:41:13.406Z"},{"error":"AxiosError: Request failed with status code 400\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n    at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)","timestamp":"2026-04-18T20:41:13.773Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async Wa (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:495:4048)\n    at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2897:182\n    at async Promise.all (index 0)\n    at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:6855:22197","timestamp":"2026-04-18T20:41:13.927Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async bqY (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:14511)\n    at async y$K (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:15053)","timestamp":"2026-04-18T20:41:14.450Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_que…
RAW_BUFFERClick to expand / collapse

Bug Description first time I've run into claude making mistakes. We have been stuck on a fairly complicated thing, But still surprised how much back and forth and correction was needed.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.111
  • Feedback ID: 12c727e6-fba0-4743-82b6-e9a5a18418a6

Errors

[{"error":"AxiosError: Request failed with status code 400\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n    at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)\n    at async df1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:268067)","timestamp":"2026-04-18T20:41:13.406Z"},{"error":"AxiosError: Request failed with status code 400\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async ll6 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:301:264352)\n    at async UR1 (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:480:3858)","timestamp":"2026-04-18T20:41:13.773Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async Wa (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:495:4048)\n    at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2897:182\n    at async Promise.all (index 0)\n    at async file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:6855:22197","timestamp":"2026-04-18T20:41:13.927Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async bqY (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:14511)\n    at async y$K (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3346:15053)","timestamp":"2026-04-18T20:41:14.450Z"},{"error":"AxiosError: Request failed with status code 401\n    at jU (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:113:1188)\n    at Unzip.<anonymous> (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12476)\n    at Unzip.emit (node:events:509:20)\n    at endReadableNT (node:internal/streams/readable:1729:12)\n    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n    at IU6.request (file:///Users/gscoggin/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_que…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to authentication or request validation, given the presence of HTTP status codes 400 and 401 in the error messages.

Guidance

  • Review the request payload and headers to ensure they are correctly formatted and valid.
  • Check authentication credentials and tokens to ensure they are up-to-date and correctly applied to the requests.
  • Investigate the API documentation for any specific requirements or restrictions on requests that could be causing the 400 status code.
  • Consider enabling verbose logging or debugging in the @anthropic-ai/claude-code/cli.js to gather more detailed information about the requests being made.

Example

No specific code example can be provided without more context, but reviewing the cli.js file at the mentioned lines (e.g., 113, 118) might offer insights into how requests are constructed and handled.

Notes

The truncated content limits the ability to provide a comprehensive solution. The presence of both 400 and 401 status codes suggests that there might be issues with both the request format/validation and authentication.

Recommendation

Apply workaround: Given the information, it seems like there might be an issue with how requests are being made or authenticated. Without the ability to upgrade or change the version, focusing on ensuring the requests are correctly formatted and authenticated is the best immediate step.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Model generates incorrect solutions requiring excessive correction cycles [1 participants]