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?