Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not download file in Transmission client #1025

Closed
BOOMER74 opened this issue Jan 24, 2017 · 2 comments
Closed

Can not download file in Transmission client #1025

BOOMER74 opened this issue Jan 24, 2017 · 2 comments

Comments

@BOOMER74
Copy link

@BOOMER74 BOOMER74 commented Jan 24, 2017

Hi! I try to download torrent from Transmission client, but all attempts fails. I use both webtorrent and webtorrent-hybrid modules on node and electron, but Transmission still not found peers. For example, this is simple script:

(new require("webtorrent")()).seed("some-file", (torrent) => {
    torrent.on('warning', (err) => console.log(err));
    torrent.on('error', (err) => console.log(err));

    console.log(torrent.magnetURI);
});

WebTorrent Desktop download file if i use webtorrent-hybrid on node or webtorrent on electron, but Transmission not working in any case. But if download first in WebTorrent Desktop and then add in Transmission, all works (that means this is not network trouble).

What i do wrong? I need upload file to a server (where used Transmission) in electron or nw.js app.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Jan 25, 2017

Using torrents to upload files to your server doesn't seem like the most reliable tool for the job, to be honest. Torrents aren't ideal for 1-to-1 communication. They excellent when there are lots of people who want or have the same file.

That said, I think this issue is caused by you not waiting long enough before initiating the download from Transmission, since it takes some time to announce the torrent to the DHT. Try waiting for the dhtAnnounce event before adding the magnet url to Transmission.

You can also improve the reliability if you specify some working tracker servers as the announce option to client.seed():

client.seed('some-file', { announce: [ 'tracker_url', 'tracker_url2' ] }, callback)
@feross feross closed this Jan 25, 2017
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.