0
Meteor 1.3.2.4でthis NPMパッケージを使用しようとしています。関数内ではイベントエミッタを使用し、非同期コールバックを持ちます。 エラー:MeteorのNPM使用に関するETIMEDOUT
Meteor.methods({
proxyFetcher() {
console.log("OK run");
var options = {
protocols: ['http'],
anonymityLevels: ['elite'],
sourcesBlackList: ['bitproxies', 'kingproxies']
};
var gettingProxies = ProxyLists.getProxies(options);
Proxies.remove({});
gettingProxies.on('data', Meteor.bindEnvironment(function(proxies) {
console.log(proxies.length);
proxies.forEach((proxy) => {
Proxies.insert({proxy: proxy.ipAddress + ":" + proxy.port});
});
// Received some proxies.
}));
}
}
が、それは私の出力である:私は以下のような
this guide articleに基づいて同期探し
Meteor.bindEnvironment
とにそれを変換しよう
I20160515-12:08:02.579(4.5)? OK run
I20160515-12:08:03.250(4.5)? 44
I20160515-12:08:03.645(4.5)? 29
I20160515-12:08:03.963(4.5)? 35
I20160515-12:08:04.376(4.5)? 349
I20160515-12:08:04.711(4.5)? 337
I20160515-12:08:05.071(4.5)? 350
I20160515-12:08:05.853(4.5)? 330
I20160515-12:08:06.149(4.5)? 323
I20160515-12:08:06.443(4.5)? 331
I20160515-12:08:06.737(4.5)? 324
I20160515-12:08:07.039(4.5)? 334
W20160515-12:08:08.083(4.5)? (STDERR)
W20160515-12:08:08.084(4.5)? (STDERR) Error: ETIMEDOUT
W20160515-12:08:08.085(4.5)? (STDERR) at [object Object]._onTimeout (/home/cyc/Programming/Projects/proxyCheck/Sources/node_modules/proxy-lists/node_modules/request/request.js:762:15)
W20160515-12:08:08.085(4.5)? (STDERR) at Timer.listOnTimeout [as ontimeout] (timers.js:121:15)
=> Exited with code: 8
=> Meteor server restarted
あなたには、いくつかの反復後、サーバーを再起動し、私のコードのリターンエラーを見られるように。 メテオールでこのパッケージを使用するには、どのような問題がありますか?
それは男を働いています。ご注意いただきありがとうございます。 – b24