I am developing an Actions on Google app with a Dialogflow integration. When testing in the Dialogflow simulator with a common request call I get a response, that is, the Uri I have passed is found, executes and returns a response. Doing exactly the same in the Actions on Google simulator creates this error.
{ Error: getaddrinfo ENOTFOUND abc.eu.auth0.com abc.eu.auth0.com:443
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'abc.eu.auth0.com',
host: 'abc.eu.auth0.com',
port: 443 }
The code looks like this
let options = {
uri: 'https://abc.eu.auth0.com/userinfo/',
headers: {
authorization: 'Bearer ' + _accessToken,
}
};
request.get(options, (error, response, body) => {
if (!error && response.statusCode === 200) {
// output error, body, response, do stuff
} else {
// do other stuff
}
});
request
is the request package.
So the question is, are there any limitations in the Actions on Google simulator/test mode? (I get the same error when talking to Google Assistant on my phone when signed in with developer account).