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

rutracker.org support #66

Open
alexeypetrenko opened this issue Oct 7, 2014 · 4 comments
Open

rutracker.org support #66

alexeypetrenko opened this issue Oct 7, 2014 · 4 comments

Comments

@alexeypetrenko
Copy link

Hi,
I've been trying to download rutracker.org torrents with JStorrent. For some reason it does not work. It looks like there are problems with connection to a tracker. I see following errors in the console:

http tracker error XMLHttpRequestProgressEvent tracker.js:193
Failed to load resource: the server responded with a status of 403 (Forbidden)
http://bt4.rutracker.org/ann?uk=...

According to rutracker FAQ page there are three possible reasons for HTTP 403 response code:

  1. Client uses scrape-requests.
  2. Antivirus or proxy alters request parameters.
  3. Incompatible client (Doesn't strictly follow BitTorrent specifications).

For me 2 is definitely not the case. I do not use AV or proxy currently. So, apparently it's 1 or 3.

It would be really nice if you could fix this problem.


Oh, by the way. It also shows following error all the time:

window.onerror triggered Uncaught TypeError: undefined is not a function js/bencode.js 119 

It results in the notification:
Notification
Then these notifications stack up:
notifications
Which is quite annoying.

@kzahel
Copy link
Owner

kzahel commented Oct 9, 2014

Thanks for reporting this. I haven't had the resources to track down every private tracker and ask them to whitelist JSTorrent. I think the most likely thing happening is that they are looking at the User-Agent string that the JSTorrent uses, which is the same user-agent string as the browser, and simply issuing a 403 forbidden.

I'm going to look into it some more, but it's really the decision of the private tracker on how and which clients they want to allow. JSTorrent currently does not even have the ability to seed, because ChromeOS still has no way to open up the firewall to listen for new connections. So this may be against the rutracker rules. I'll do some more investigating and report back.

By the way, those errors should not show up any more if you have updated to version 2.3.2.

@kzahel
Copy link
Owner

kzahel commented Oct 9, 2014

So rutracker is an interesting tracker. The torrents are not market as "private" in the infodict, but you still get your own torrent file with a custom announce URL.

I could change the way JSTorrent announces to trackers, using a raw socket, but currently the default for public trackers is to re-use the browser XMLHttpRequest which sets the browser user-agent.

It looks like my custom raw socket announcer has some problems communicating specifically with rutracker, in any case. I am looking into either improving my own code or using something like this https://github.com/codeinchaos/chrome.sockets.tcp.xhr (which needs some improvement)

@iamamongno1
Copy link

it's 2016 and still rutracker doesn't work with JSTorrent. Are you going to fix it?

@mox512
Copy link

mox512 commented Nov 1, 2016

Guys please fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants