Tag: utorrent

无法使用node.js和utorrent-api上传.torrent

我试图使用utorrent-api库作为例子中的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); }); […]