无法上载带有node.js和utorrent api的.torrent
我正在尝试使用无法上载带有node.js和utorrent api的.torrent,node.js,utorrent,Node.js,Utorrent,我正在尝试使用node.js的库,如示例所示: request({'uri' : 'http://releases.ubuntu.com/13.04/ubuntu-13.04-desktop-i386.iso.torrent', 'encoding': null}, function (error, response, torrentFileBuffer) { utorrent.call('add-file', {'torrent_file': torrentFileBuffer}, f
node.js的库,如示例所示:
request({'uri' : 'http://releases.ubuntu.com/13.04/ubuntu-13.04-desktop-i386.iso.torrent', 'encoding': null}, function (error, response, torrentFileBuffer) {
utorrent.call('add-file', {'torrent_file': torrentFileBuffer}, function(err, data) {
if(err) { console.log('error : '); console.log(err); return; }
console.log('Successfully added torrent file !');
console.log(data);
});
});
我在控制台中得到了这个错误:
error :
{ [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
我可以通过以下方式连接到uTorrent:
utorrent.call('list', function(err, torrents_list) {
console.log(torrents_list);
});
我得到了正确的torrents列表。
我试图将.torrent文件保存到磁盘,但看起来还可以,所以问题在于文件上载
uTorrent 3.3正在Linux上运行。WebUI正在工作,我可以通过浏览器上传.torrent文件。
如何调试此错误