Getting getaddrinfo ENOTFOUND

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?

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

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.