claude-code - 💡(How to fix) Fix [Bug] Claude Code fails to read project documentation and provides misleading information about system access [2 comments, 3 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#54909Fetched 2026-05-01 05:51:15
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2subscribed ×1

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-29T18:22:30.705Z"},{"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-29T18:22:47.262Z"},{"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-29T18:23:03.502Z"},{"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 TLS…

Root Cause

Bug Description This entire session has been marred by continued refusal to read longstanding project instructions. Key documents on a critical migration were not even read. Bad information was given multiple times. A migration plan was proffered with specific advice based on not reading the actual codebase. Statements that were glaringly false and misleading were repeatedly made, e.g., "I have not verified the state of the D1 database, the Cloudflare environment variables on either project, or the Zero Trust policies, because those are in the Cloudflare dashboard, which I cannot access." when it has full access. The next statement was that the token had expired when it did not look for decision record logs and architectural decision record logs or change logs tgat specified a new and fully provisioned token, Every minute that this gets used you endanger me more, the more I use it. We are seriously considering leaving and moving over to ChatGPT because, while they suck donkey ass, at least they know it.

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-29T18:22:30.705Z"},{"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-29T18:22:47.262Z"},{"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-29T18:23:03.502Z"},{"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 TLS…
RAW_BUFFERClick to expand / collapse

Bug Description This entire session has been marred by continued refusal to read longstanding project instructions. Key documents on a critical migration were not even read. Bad information was given multiple times. A migration plan was proffered with specific advice based on not reading the actual codebase. Statements that were glaringly false and misleading were repeatedly made, e.g., "I have not verified the state of the D1 database, the Cloudflare environment variables on either project, or the Zero Trust policies, because those are in the Cloudflare dashboard, which I cannot access." when it has full access. The next statement was that the token had expired when it did not look for decision record logs and architectural decision record logs or change logs tgat specified a new and fully provisioned token, Every minute that this gets used you endanger me more, the more I use it. We are seriously considering leaving and moving over to ChatGPT because, while they suck donkey ass, at least they know it.

Environment Info

  • Platform: darwin
  • Terminal: ghostty
  • Version: 2.1.78
  • Feedback ID: d457250e-53cf-49fd-9c97-a0888ff3383f

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-29T18:22:30.705Z"},{"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-29T18:22:47.262Z"},{"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-29T18:23:03.502Z"},{"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 TLS…

Note: Content was truncated.

extent analysis

TL;DR

The issue is likely related to a DNS resolution failure for the http-intake.logs.us5.datadoghq.com domain, causing the application to fail.

Guidance

  • Verify the DNS resolution for http-intake.logs.us5.datadoghq.com using tools like dig or nslookup to ensure it is correctly configured.
  • Check the network connectivity and firewall rules to ensure that the application can reach the Datadog intake endpoint.
  • Review the application logs to see if there are any other error messages that may indicate a different root cause.
  • Consider temporarily disabling the Datadog integration or using a different logging endpoint to mitigate the issue.

Example

No code snippet is provided as the issue seems to be related to DNS resolution and network connectivity rather than a specific code problem.

Notes

The provided error messages are truncated, which may limit the ability to provide a more detailed analysis. Additionally, the issue description mentions a migration plan and Cloudflare environment variables, but it is unclear how these are related to the DNS resolution error.

Recommendation

Apply a workaround by temporarily disabling the Datadog integration or using a different logging endpoint, as the root cause of the DNS resolution failure is unclear and may require further investigation.

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 fails to read project documentation and provides misleading information about system access [2 comments, 3 participants]