Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebtorrent v0.105.0 won't download from webseed if no peer online #1671
Comments
This comment has been minimized.
This comment has been minimized.
|
Please could you provide a code example of how you are attempting to achieve this in v0.105.0? Kind regards, |
This comment has been minimized.
This comment has been minimized.
|
We need a code example to attempt to reproduce this. Thanks! |
This comment has been minimized.
This comment has been minimized.
|
Think i have stumble upon this to before. but you say that you already have the torrent file/metadata if there where nobody downloading this and xs where not attached it would not download anything? (guessing)
|
This comment has been minimized.
This comment has been minimized.
|
While i was looking at the sintel.torrent source i could not find any information regarding a |
This comment has been minimized.
This comment has been minimized.
|
@jimmywarting that's what I was thinking. I just wanted to double check with @ziro-official how they were adding the torrent, as if they were adding it via the MagnetURI without The If @ziro-official is adding the torrent with the |
This comment has been minimized.
This comment has been minimized.
|
I hope this helps. This is how today I got it working.
4.2 Using for instance this link you can encode and decode: 4.3 Fully decoded looks like this: 5 As a resume: Being the unique viewer jumps hundres of errors "many peer connections" etc, which I don't know why... but the webseeding works like this. Hope help you guys @ziro-official @SilentBot1 |
This comment has been minimized.
This comment has been minimized.
|
Thanks all, I'm adding the torrent with the .torrent file, I'll provide the sample code and the .torrent file & content file tomorrow. Thank you. |
This comment has been minimized.
This comment has been minimized.
|
Log from terminal
Source Code
Webseed File: Torrent File |
This comment has been minimized.
This comment has been minimized.
|
Thank you for providing us with the example code to help us determine the issue. After using your test code, it appears that WebSeeds are currently broken in the latest version of WebTorrent (v0.105.0). As described, when attempting to add a WebSeed to a torrent, either via an embedded urlList or I tested this by adding the given torrent file to webtorrent.io which runs on WebTorrent 0.105.0 and then called After doing some further testing with WebTorrent in Node, WebSeeds stop working in version 0.101.1. In version 0.101.0 WebSeeds are working correctly and downloading data from the WebSeed but as mentioned in any version above 0.101.0 up to the latest release, 0.105.0, WebSeeds no longer correctly download. @feross it appears that this specific commit ,8cfab05, between version 0.101.0 and 0.101.1 may have caused the broken functionality of WebSeeds. |
This comment has been minimized.
This comment has been minimized.
There's no way to include
It appears that web seeds work fine in v0.105.0 for Any idea what is causing @ziro-official's torrent to not work?
Thanks for tracing the bug to that specific version. Perhaps we made a mistake when converting that file to ES6? |
This comment has been minimized.
This comment has been minimized.
|
@feross I found the root cause of this bug. I change it to |

What version of WebTorrent?
v0.105.0 and v0.99.0
What operating system and Node.js version?
Ubuntu 18.04
What browser and version? (if using WebTorrent in the browser)
No
What did you expect to happen?
v0.105.0 won't start download from webseed but v0.99.0 did.
What actually happened?
When I create a client from a .torrent file, Webtorrent won't start download from webseed if no peer online (fresh torrent, no one seed it, no metadata on any tracker). I tried to uninstall v0.105.0 and install v0.99.0 and it work, it start download from webseed right away.