[BUG] Node.js DNS resolution fails for googleapis.com (EAI_AGAIN error)

Resolved 💬 3 comments Opened Nov 9, 2025 by SteveLockley Closed Nov 13, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Description:

When attempting to deploy to Google Apps Script using the googleapis npm package, Node.js fails with DNS resolution errors while curl succeeds.

What Should Happen?

Expected: Node.js DNS resolution should work the same as curl/system DNS

Error Messages/Logs

Error:

request to https://www.googleapis.com/oauth2/v4/token failed, reason: getaddrinfo EAI_AGAIN www.googleapis.com
Working:

curl -I https://www.googleapis.com successfully reaches the server
Not working:

Node.js applications using googleapis package fail with EAI_AGAIN
Environment: Claude Code Web

Impact: Prevents legitimate deployment workflows to Google Cloud services via Node.js libraries

Steps to Reproduce

Try and push a deploy with clasp to a google apps script site

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Sonnet 4.5 (model ID: claude-sonnet-4-5-20250929).

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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