Auth0 Home Blog Docs

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:       '',
    clientID:     'REDACTED'

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

I’m getting the following error

Error: getaddrinfo ENOTFOUND

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