Cloud Functions for Firebase - getaddrinfo ENOTFOUND

in my situation I had to wait and let what ever lag was happening pass. Now it's fine again.


You'll need to be on a paid plan to make external API requests.

Firebase's Blaze plan (pay as you go) has a free allotment for Cloud Functions. https://firebase.google.com/pricing/


I was having this issue because of weak internet, change the internet connection.


You need to include service account to the admin initialization. this fixed the same issue for me