Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. ERROR HAPPENS SOMETIMES?

To preface, this is the error.

Promise { <pending> }
nodejsprojectnode_modulesfirebase-adminlibutilserror.js:44
        var _this = _super.call(this, errorInfo.message) || this;
                           ^
FirebaseAppError: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND".
    
  errorInfo: {
    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: "Error fetching access token: Error while making request: getaddrinfo ENOTFOUND metadata.google.internal. Error code: ENOTFOUND".'
  },
  codePrefix: 'app'
}

From my understanding, this error is because my params are invalid or something causing an improper initialization of firebase.

Now I am initializing the app like this: initializeApp();.

So the initialization works. When I run a command such as const userInfo = await getAuth().verifyIdToken(authorization); the command works and I get userInfo but when I run a command such as const userInfo = await getAuth().getUser(uuid); it fails.

To my knowledge, the syntax is right and how I’m using the methods are right as well. I’m just unsure why I get an initializeApp error when using one method but not another.