此Meteor服务器代码发出此错误: 知道如何以及从哪里开始寻找? 该代码使用ddp来调用其他应用程序并接收来自其他应用程序的调用。
Exception while invoking method 'myMethod' Error: read ECONNRESET
at Object.Future.wait (/opt/bundle/node_modules/fibers/future.js:449:15)
at Object.call (packages/meteor.js:213:24)
at Object.HTTP.get (meteor://app/packages/http/httpcall_common.js:50:20)
at Object.freeze.CFDescription (meteor://app/server/lib.js:502:24)
at null.Meteor.methods.otherDescriptions (meteor://app/server/methods.js:151:9)
at maybeAuditArgumentChecks (meteor://app/packages/ddp-server/livedata_server.js:1737:12)
at meteor://app/packages/ddp-server/livedata_server.js:719:19
at null._.extend.withValue (packages/meteor.js:1122:17)
at meteor://app/packages/ddp-server/livedata_server.js:717:40
at null._.extend.withValue (packages/meteor.js:1122:17)
- - - - -
at exports._errnoException (util.js:911:11)
at TLSWrap.onread (net.js:558:26)
以下是该方法的样子:
'myMethod': (w) => { //6a
let url = 'https://www.some-url.com/Search/Result?vin=' + w + '&IdentificationType=name';
const res = HTTP.get(url);
const ResObj = {$: cheerio.load(res.content), html: res.content};
let doc = myCol.findOne({name: w});
const elms = ResObj.$('.panel-body');
const elemLine = ResObj.$('.panel-body').text().replace(/\s*?(^|\n)\s*/g, '$1').split('\n'); //each 4 lines for one description
myCol.update({vin: vin}, {$set: {a: aa, b: bb}}, function (err) {
if (err) {
lib.printDebugInfo('done');
}
});
}
},