torrent-control icon indicating copy to clipboard operation
torrent-control copied to clipboard

Failed to read torrent.

Open Jaseku opened this issue 4 years ago • 5 comments

I got this info in private torrent. Can i do someting?

fail

Jaseku avatar Jun 30 '20 21:06 Jaseku

Probably need to click through to another page... That error usually comes when you try to load a regular page as a torrent...

Most likely the link you have is serving up another page not a .torrent or magnet link...

ryanerwin avatar Jul 19 '20 06:07 ryanerwin

Yes, you are trying to add a web page. This often happens when you accidentally click a link to a torrents details page instead of torrent.

Mika- avatar Jul 19 '20 12:07 Mika-

It also happens when the link to the .torrent file is behind a DDOS protection (cloudflare, etc..).

Antorell avatar Oct 05 '20 17:10 Antorell

It also happens when the link to the .torrent file is behind a DDOS protection (cloudflare, etc..).

Yeah, this started happening for me a couple weeks ago on a site that uses cloudflare. If I right click the link, and choose, "Save Link As..." in FireFox, it downloads the actual .torrent file, not a webpage as others are suggesting.

I've switched to "Torrent to Web" and it doesn't have this problem.

keylogthis avatar Jul 03 '21 15:07 keylogthis

I have same problem with private tracker - when I disable addon I am getting torrent file donwload dialog and when enable addon I am getting that error message. And since other addons dont have such problem, maybe you could review some permissions or something - your addon way better as competitors, but fail main task to read torrent file from such links: .net/download.php?id=903733&name=Griftlands.v484799-PLAZA.torrent

StarvingDeveloper avatar Nov 22 '21 09:11 StarvingDeveloper

Any current examples of failing urls? Preferrably on public sites. I'm experimenting a new torrent fetching implementation and would like to test it with some problematic scenarios.

Mika- avatar Oct 08 '22 15:10 Mika-

Anything from https://rarbgaccess.org/ for example. Magnet links work, but not torrent links. I don't know if its just a mime type problem because it gets generated by php as html or something. Maybe it's just qBittorrent that's the problem for me.

Akatokage avatar Oct 08 '22 17:10 Akatokage

Can't find anything wrong with that site. Everything adds to qbittorrent fine. Mime types and other headers are ok and cloudflare allows traffic to pass even without cookies. Site does do some heavy clickjacking and redirecting. So it could be that some ads have urls that are made to look like torrents to fool people to click them.

Mika- avatar Oct 09 '22 08:10 Mika-

Doesn't work for me, I have version 0.2.29 of the addon. Without the addon the torrent file downloads fine on a left click, but when I right click and save as, a threat_defence.htm gets downloaded. I guess that explains the type problem for me. I even tried it on a fresh Firefox install Version 105.0.3 (64-bit) with only the addon installed, same problem. I use qBittorrent v4.4.5 in a Docker container running on Arch Linux. If the torrent links work for you then I guess I have to continue looking what the problem is on my end.

Akatokage avatar Oct 09 '22 10:10 Akatokage

That seems to be some custom anti scraping system they are using. It could be triggered by ip or other network information as i'm not encountering it.

I made experimental build of the addon if you want to check if it behaves differently.

Mika- avatar Oct 09 '22 13:10 Mika-

With the experimental build there isn't even a notification. Magnet links and other sites work fine. But your guess about IP's was probably right, when I change my IP to one in the US it started working even with the default addon.

Sorry for the trouble and thank you.

Akatokage avatar Oct 09 '22 18:10 Akatokage

That seems to be some custom anti scraping system they are using. It could be triggered by ip or other network information as i'm not encountering it.

I made experimental build of the addon if you want to check if it behaves differently.

Unfortunately all trackers who failed previously is private, so I just installed this experimental build and it worked!

StarvingDeveloper avatar Oct 10 '22 08:10 StarvingDeveloper

After some additional testing reworked torrent fetching is now available in the latest version.

Mika- avatar Oct 19 '22 15:10 Mika-

As of today, the latest version 0.2.30 seems to have partially broken torrent fetching for me. It still worked on a site where the link directly points to a .torrent file, but otherwise gives this error on a private site which has worked just fine up until now:

Failed to read torrent. (Unknown type: application/x-bittorrent; charset=utf-8)

I am on Arch Linux, using the latest version of Firefox, and I am connected to a remote qBittorrent instance using HTTP authentication. I have had no problems with the site in question up until this release.

The links that now fail, end with something like this:

/torrents.php?action=download&id=xxx&authkey=xxx&torrent_pass=xxx

Purgatory8593 avatar Oct 20 '22 16:10 Purgatory8593

Released a updated version with loosened type check that fixes that. Torrent files are always utf-8 so it's not common to include that information.

Mika- avatar Oct 20 '22 16:10 Mika-

I just wanted to update that the site I had previously had a problem with is now working with this update, thank you.

keylogthis avatar Oct 20 '22 17:10 keylogthis

I have the same problem in one of the private tracker site. I try to manually paste the URL directly to the qBittorrent's "add torrent link" menu and the link does work. But if I right click and choose the extension's add torrent, it will show the unknown type: text/html error.

victoruptons avatar Jan 30 '23 04:01 victoruptons

I can acknowledge it stopped work on some trackers. But on different trackers as before - after last fix they still work. This time for example rutor.org spit same text/html error. Looks like plugin need some update again.

StarvingDeveloper avatar Jan 31 '23 07:01 StarvingDeveloper