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

Torrent Control trying to load torrent from 127.0.0.1 - Network error

Open robertheadley opened this issue 4 years ago • 10 comments

image

This does not happen with every torrent, but 98% of them. I get a popup that says

image

I have attached the network log from my extension debug for Firefox.

c6b87ed5-b678-4268-be7b-17f392c5bdeb_Archive [20-10-13 20-46-56].zip

robertheadley avatar Oct 14 '20 01:10 robertheadley

This happens when rTorrent is running in a container or other type of jail preventing it from seeing the real server address. As rTorrent can't see the real address this results as invalid redirect to localhost or container hostname as seen "right" from inside the jail.

Best way could be to add url rewriting to force these redirects to always point to a hostname configured in addon settings.

Mika- avatar Oct 14 '20 09:10 Mika-

It worked previously. I verified that I can connect to my server fine on other browsers.

robertheadley avatar Oct 15 '20 00:10 robertheadley

Rutorrent change was done in april (345dbe5). Previously redirect was just a relative path without hostname.

Mika- avatar Oct 15 '20 17:10 Mika-

I notified an admin for rapidseedbox. Thank you.

robertheadley avatar Oct 15 '20 20:10 robertheadley

My admin made the change but I am still experiencing the same problem. I actually get a 404 if I choose Flood though.

robertheadley avatar Oct 18 '20 04:10 robertheadley

Is this something that will have a workaround in a future version of your extension?

robertheadley avatar Oct 20 '20 01:10 robertheadley

I tested to handle redirects manually, but it may not be possible or atleast it's going to need some hacky solution. By the current fetch specification there's no way to get the redirected url.

Mika- avatar Oct 20 '20 14:10 Mika-

Maybe a checkbox to hardcode the addtorrent.php script location? Mine is located at https://myip/rutorrent/php/addtorrent.php but the script is trying to access //127.0.0.1:8080/php/addtorrent.php?result[]=FailedDirectory&json=1

missing the /rutorrent

robertheadley avatar Oct 21 '20 20:10 robertheadley

In that case your server address should be configured as https://myip/rutorrent/. I think there may be cases that prevent rutorrent from seeing the proper path due path rewriting on reverse proxy.

Mika- avatar Oct 24 '20 12:10 Mika-

Yeah, that is how I have it configured. I know that this is probably my admin's problem and not yours, but they have kind of closed the issue out as resolved.

robertheadley avatar Oct 24 '20 21:10 robertheadley