-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.1.5 regression: getaddrinfo ENOTFOUND metadata.google.internal
#27642
Comments
Can you run the below script with both Node and Deno? Is there any difference? import dns from "node:dns"
dns.lookup("metadata.google.internal", console.log)
Where do you set up domain mapping for |
Different errno with Node v22.12.0: $ deno dns.ts
✅ Granted net access to "1.1.1.1:53".
✅ Granted net access to "8.8.8.8:53".
Error: getaddrinfo ENOTFOUND metadata.google.internal
at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
at __node_internal_ (ext:deno_node/internal/errors.ts:246:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:37:26)
at ext:deno_node/internal_binding/cares_wrap.ts:78:9
at eventLoopTick (ext:core/01_core.js:175:7) {
errno: -3007,
code: "ENOTFOUND",
syscall: "getaddrinfo",
hostname: "metadata.google.internal"
} $ node dns.mjs
Error: getaddrinfo ENOTFOUND metadata.google.internal
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'metadata.google.internal'
}
Nowhere. I've never seen this TLD until I ran into this bug. The error comes from attempting to connect to the Firestore emulator running locally via Here's a minimal repro: import { initializeApp } from 'firebase-admin/app';
import { getFirestore } from 'firebase-admin/firestore';
// Per https://firebase.google.com/docs/emulator-suite/connect_firestore#admin_sdks
Deno.env.set('FIRESTORE_EMULATOR_HOST', '127.0.0.1:8080');
initializeApp();
const db = getFirestore();
await db.collection('deno-bug').get(); $ deno run --allow-all deno-firestore-local.ts
error: Uncaught Error: getaddrinfo ENOTFOUND metadata.google.internal.
at __node_internal_captureLargerStackTrace (ext:deno_node/internal/errors.ts:93:9)
at __node_internal_ (ext:deno_node/internal/errors.ts:246:10)
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:43:26)
at ext:deno_node/internal_binding/cares_wrap.ts:71:9
at eventLoopTick (ext:core/01_core.js:175:7) 2.1.4 correctly outputs nothing: $ deno run --allow-all deno-firestore-local.ts
A new release of Deno is available: 2.1.4 → 2.1.5 Run `deno upgrade` to install it. |
I had something similar and the annoying part about it: It ran in a container without interactive prompts so it didn't display any permissions that weren't granted. The only error message is the It's also not possible to add |
@dandv What happens if you set the nameservers in /etc/resolv.conf like this comment |
@kt3k first off, with nothing in /etc/resolv.conf,
If I set
|
I'm getting this error on Linux with 2.1.5 but not with 2.1.4 in a script that connects to the Firestore emulator running locally.
https://en.wikipedia.org/wiki/.internal
Let me know if I should take the time to put together a minimal repro, or if this report is enough.
The text was updated successfully, but these errors were encountered: