claude-code - 💡(How to fix) Fix [Bug] Claude Code not following user commands, generating unintended code [1 comments, 2 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#48891Fetched 2026-04-16 06:48:10
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

[{"error":"Error: 1P event logging: 11 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:30.503Z"},{"error":"Error: 1P event logging: 17 events failed to export (code=ECONNRESET, read ECONNRESET)\n at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:45.907Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n at iN.<anonymous> (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n at iN.emit (node:events:508:28)\n at Timeout._onTimeout (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n at listOnTimeout (node:internal/timers:605:17)\n at process.processTimers (node:internal/timers:541:7)\n at qQ6.request (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async tC1 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-15T07:45:49.426Z"},{"error":"Error: Request timed out.\n at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n at processTicksAndRejections (node:internal/process/task_queues:104:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at process.processImmediate (node:internal/timers:472:9)\n at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)","timestamp":"2026-04-15T07:45:51.243Z"},{"error":"Error: Request timed out.\n at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)\n at async Object.call (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4675:7235)\n at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4840:1947","timestamp":"2026-04-15T07:45:51.246Z"},{"error":"Error: 1P event logging: 11 events failed to export (code=EAI_AGAIN, getaddrinfo EAI_AGAIN api.anthropic.com)\n at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:46:01.493Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.…

Code Example

[{"error":"Error: 1P event logging: 11 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:30.503Z"},{"error":"Error: 1P event logging: 17 events failed to export (code=ECONNRESET, read ECONNRESET)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:45.907Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:508:28)\n    at Timeout._onTimeout (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at qQ6.request (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async tC1 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-15T07:45:49.426Z"},{"error":"Error: Request timed out.\n    at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processImmediate (node:internal/timers:472:9)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n    at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n    at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n    at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n    at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)","timestamp":"2026-04-15T07:45:51.243Z"},{"error":"Error: Request timed out.\n    at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n    at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n    at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n    at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n    at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)\n    at async Object.call (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4675:7235)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4840:1947","timestamp":"2026-04-15T07:45:51.246Z"},{"error":"Error: 1P event logging: 11 events failed to export (code=EAI_AGAIN, getaddrinfo EAI_AGAIN api.anthropic.com)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:46:01.493Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.…
RAW_BUFFERClick to expand / collapse

Bug Description not followinf command. building something else

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.107
  • Feedback ID: 47e7543c-4663-48e1-809b-12c7d4d803f1

Errors

[{"error":"Error: 1P event logging: 11 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:30.503Z"},{"error":"Error: 1P event logging: 17 events failed to export (code=ECONNRESET, read ECONNRESET)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:45:45.907Z"},{"error":"AxiosError: timeout of 5000ms exceeded\n    at iN.<anonymous> (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:116:13080)\n    at iN.emit (node:events:508:28)\n    at Timeout._onTimeout (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:115:3292)\n    at listOnTimeout (node:internal/timers:605:17)\n    at process.processTimers (node:internal/timers:541:7)\n    at qQ6.request (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:118:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async tC1 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:509:3704)","timestamp":"2026-04-15T07:45:49.426Z"},{"error":"Error: Request timed out.\n    at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n    at processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processImmediate (node:internal/timers:472:9)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n    at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n    at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n    at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n    at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)","timestamp":"2026-04-15T07:45:51.243Z"},{"error":"Error: Request timed out.\n    at jR.makeRequest (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:47:4037)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:4114\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2979\n    at async kTY (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4665:16979)\n    at async l_7 (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:2931)\n    at async ULK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4666:12233)\n    at async QLK (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4670:2638)\n    at async Object.call (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4675:7235)\n    at async file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:4840:1947","timestamp":"2026-04-15T07:45:51.246Z"},{"error":"Error: 1P event logging: 11 events failed to export (code=EAI_AGAIN, getaddrinfo EAI_AGAIN api.anthropic.com)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:1465)","timestamp":"2026-04-15T07:46:01.493Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNABORTED, timeout of 10000ms exceeded)\n    at bC1.queueFailedEvents (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:496:2546)\n    at async bC1.doExport (file:///C:/Users/Deepak/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely due to network connectivity or server timeout errors, causing event logging and requests to fail.

Guidance

  • Check the network connection and ensure it is stable, as errors like ECONNABORTED and EAI_AGAIN suggest connectivity issues.
  • Verify the server status of api.anthropic.com to ensure it is not experiencing downtime or maintenance, which could cause getaddrinfo EAI_AGAIN errors.
  • Consider increasing the timeout values (e.g., from 10000ms or 5000ms) in the @anthropic-ai/claude-code/cli.js file to allow more time for requests to complete, potentially mitigating timeout of 10000ms exceeded errors.
  • Review the error logs for any patterns or commonalities among the failed events to identify if there's a specific issue with the data being logged or the logging process itself.

Example

No specific code example can be provided without more context on how the @anthropic-ai/claude-code/cli.js file is structured or how the timeouts are currently set. However, typically, increasing a timeout in a JavaScript application using Axios might look something like this:

axios.get('https://api.anthropic.com/endpoint', {
  timeout: 20000 // Increase timeout to 20 seconds
});

Notes

The provided information is truncated, which might limit the ability to provide a comprehensive solution. The errors suggest a mix of network connectivity issues and server-side problems, which could be due to various factors including but not limited to, server maintenance, network outages, or misconfigured client settings.

Recommendation

Apply a workaround by increasing the timeout values in the application to mitigate the timeout exceeded errors, while also investigating the network connectivity and server status issues.

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] Claude Code not following user commands, generating unintended code [1 comments, 2 participants]