title: firebase-tools getaddrinfo ENOTFOUND metadata.google.internal
body: <p>I'm getting this error in my terminal:</p>
  
  <pre><code>@firebase/database: FIREBASE WARNING: {"code":"app/invalid- 
  credential","message":"Credential implementation provided to . 
  initializeApp() via the \"credential\" property failed to fetch a valid 
  Google OAuth2 access token with the following error: \"Failed to parse 
  access token response: Error: Error while making request: getaddrinfo 
  ENOTFOUND metadata.google.internal metadata.google.internal:80. Error 
  code: ENOTFOUND\"."}`
  </code></pre>
  
  <p>when using <code>firebase-tools</code>. This is the simple node script I'm trying to run.</p>
  
  <pre><code>const admin = require("firebase-admin");
  
  const firebase = admin.initializeApp({
    apiKey: "MY_API_KEY",
    authDomain: "APP_ID.firebaseapp.com",
    databaseURL: `https://DATABASE_URL.firebaseio.com`,
    projectId: "APP_ID"
  });
  
  const snap = firebase
    .database()
    .ref("REF")
    .child("ID")
    .once("value");
  console.log(snap);
  </code></pre>
  
  <p>Firebase tools version: 5.0.1</p>
  
  <p>I've tried uninstalling and reinstalling, logging in and out of firebase-tools with <code>firebase login</code> / <code>firebase-logout</code></p>