【发布时间】:2017-06-15 10:22:02
【问题描述】:
我正在尝试在 firebase 免费计划中使用 google contact api。它给了我一个错误 ERROR: getaddrinfo ENOTFOUND www.google.com www.google.com:443
据我所知,firebase 允许我们在他们的免费计划中使用谷歌服务,但为什么我会收到此错误。
var options = {
host: 'www.google.com',
path: '/m8/feeds/contacts/default/full?access_token=token&alt=json'
};
https.get(options, function(res) {
//my function
});
【问题讨论】:
-
你想在哪里运行这段代码?
-
通过 Firebase 云函数运行它
标签: node.js firebase firebase-realtime-database google-contacts-api google-cloud-functions