【发布时间】:2015-01-03 02:41:39
【问题描述】:
我下面的代码在服务器上抛出一个错误:
调用方法“/app/shipping/ship”时出现异常错误:在调用“/app/shipping/ship”期间未检查()所有参数
Meteor.methods({
'/app/shipping/ship': function (weight, length, width, height) {
check(weight, Number);
check(length, Number);
check(width, Number);
check(height, Number);
var async = Meteor.npmRequire('async');
var quote = function (callback) {
Meteor.call('/app/shipping/quote', 'DE', weight, length, width, height, function (err, res) {
if (err) {
callback(err);
}
else {
callback(null, res);
}
});
};
async.waterfall([
Meteor.bindEnvironment(quote)
], function(err, result) {
console.log(result);
});
}
});
我认为我已经检查了所有参数(重量、长度、宽度和高度),我还需要检查其他地方吗?
谢谢!
【问题讨论】:
标签: node.js asynchronous meteor callback npm