claude-code - 💡(How to fix) Fix [Bug] Claude Code ignores provided documentation and generates incorrect information [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#54910Fetched 2026-05-01 05:51:13
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

[{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n at BT.emit (node:events:521:24)\n at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n at ClientRequest.emit (node:events:509:20)\n at emitErrorEvent (node:_http_client:109:11)\n at TLSSocket.socketErrorListener (node:_http_client:593:5)\n at TLSSocket.emit (node:events:509:20)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:58:35.297Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n at BT.emit (node:events:521:24)\n at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n at ClientRequest.emit (node:events:509:20)\n at emitErrorEvent (node:_http_client:109:11)\n at TLSSocket.socketErrorListener (node:_http_client:593:5)\n at TLSSocket.emit (node:events:509:20)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:10.563Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n at BT.emit (node:events:521:24)\n at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n at ClientRequest.emit (node:events:509:20)\n at emitErrorEvent (node:_http_client:109:11)\n at TLSSocket.socketErrorListener (node:_http_client:593:5)\n at TLSSocket.emit (node:events:509:20)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:32.168Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n at BT.emit (node:events:521:24)\n at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n at ClientRequest.emit (node:events:509:20)\n at emitErrorEvent (node:_http_client:109:11)\n at TLSSocket.socketErrorListener (node:_http_client:593:5)\n at TLSSocket.emit (node:events:509:20)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:50.791Z"},{"error":"Error: Request was aborted.\n at lC.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:3940)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-30T05:59:51.145Z"},{"error"…

Code Example

[{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:58:35.297Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:10.563Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:32.168Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:50.791Z"},{"error":"Error: Request was aborted.\n    at lC.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:3940)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-30T05:59:51.145Z"},{"error"
RAW_BUFFERClick to expand / collapse

Bug Description Even after clearing the context, starting a new session, and providing explicit instructions the tool continues to fabricate bullshit that is critical to my project without reading ay of the extensive documentation providedc. What the fucking fuck, yo?

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.78
  • Feedback ID: 276a4df8-6606-4971-945a-09fe21254f82

Errors

[{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:58:35.297Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:10.563Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:32.168Z"},{"error":"Error: getaddrinfo ENOTFOUND http-intake.logs.us5.datadoghq.com\n    at vG.from (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:74:14180)\n    at BT.<anonymous> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:12649)\n    at BT.emit (node:events:521:24)\n    at Gl1.<computed> (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:81:1120)\n    at ClientRequest.emit (node:events:509:20)\n    at emitErrorEvent (node:_http_client:109:11)\n    at TLSSocket.socketErrorListener (node:_http_client:593:5)\n    at TLSSocket.emit (node:events:509:20)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at zR6.request (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:84:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n    at async pR8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2684:62406)","timestamp":"2026-04-30T05:59:50.791Z"},{"error":"Error: Request was aborted.\n    at lC.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:563:3940)\n    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)","timestamp":"2026-04-30T05:59:51.145Z"},{"error"

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to a DNS resolution error, as indicated by the "getaddrinfo ENOTFOUND" error messages, and may be resolved by checking network connectivity or DNS settings.

Guidance

  • Verify network connectivity and DNS resolution for the domain http-intake.logs.us5.datadoghq.com to ensure it can be reached from the environment.
  • Check the system's DNS settings and compare them with other working environments to identify any discrepancies.
  • Consider temporarily disabling any recently installed packages or dependencies that may be interfering with DNS resolution.
  • Review the @anthropic-ai/claude-code package documentation for any known issues related to DNS resolution or network connectivity.

Example

No specific code snippet can be provided without more context, but checking DNS resolution can be done using command-line tools like dig or nslookup:

dig http-intake.logs.us5.datadoghq.com

Notes

The provided error messages suggest a recurring issue with DNS resolution, but without more information about the environment, network, or recent changes, it's challenging to provide a definitive solution. The getaddrinfo ENOTFOUND error typically indicates that the DNS lookup for the specified domain failed.

Recommendation

Apply a workaround by checking and potentially adjusting DNS settings or network connectivity, as the root cause seems to be related to resolving the http-intake.logs.us5.datadoghq.com domain.

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 ignores provided documentation and generates incorrect information [1 participants]