Auth0 Home Blog Docs

Getting getaddrinfo ENOTFOUND

profile
nodejs

#1

I have the following code running in a google cloud-function

// Initialize the Auth0 client
var AuthenticationClient = require('auth0').AuthenticationClient;
var auth0 = new AuthenticationClient({
    domain:       'familybank.auth0.com',
    clientID:     'REDACTED'
});

function getAccountBalance(app) {
    auth0.getProfile(app.getUser().accessToken, function (err, userInfo) {
        if (err) {
            console.log('Error getting userProfile from Auth0: ' + err);
        }
        console.log(userInfo);
    });

I’m getting the following error

Error: getaddrinfo ENOTFOUND familybank.auth0.com familybank.auth0.com:443

Any idea what’s going on here?


#2

I discovered this is a limitation of the free plan with firebase… This isn’t a problem with Auth0