【发布时间】:2015-07-09 11:27:30
【问题描述】:
我在我的一台机器上使用 node.js 的 usergrid 模块,但现在我得到了我的新笔记本电脑,并在笔记本电脑上安装了所有必需的包,但是这里 usergrid 模块的执行失败,而相同的代码和相同的模块在我的机器上执行。
谁能帮我解决这个问题?
下面是我要执行的操作。
app.get('/discovery', function(req, res, next) {
var providerId = req.query.providerId;
discovery(providerId, function(error, result){
if(error){
res.json(error);
}else{
res.json(result);
}
});
});
出现的错误是:
D:\REPOS\Exchange>node main.js 调用:GET https://api.usergrid.com/abc/test/abc_servers D:\REPOS\Exchange\node_modules\usergrid\lib\usergrid.js:112 r.body = r.body || {}; TypeError:无法读取未定义的属性“正文”
【问题讨论】:
标签: node.js windows usergrid apigee-baas