pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
265 stars 79 forks source link

warp redirect is wrong #101

Open etomm opened 10 years ago

etomm commented 10 years ago

I setted up a reverse proxy, using also the option for the redirect url in the settings.

searching and navigating is fine, but when I try to download something using the special link that start with

http://test/test/warp?x=k35aJVOyRihihIpXJvo84zsDAiu9hvt0JfpCSvay4voaSjrfRTsxGdeXensqeT9fGVstGcbxNnoKNc5BGTbTeCsv4CbXRKpYAf4rEc6qeTstGI4IEdeaeKG0NnAIGVPCeToKGTJxevWa4dAqeCbTACoCNcmI

Instead of downloading the nzb is pointing to the root of my server domain:

http://test/getnzb/485c50d038b4415088ef94d703246f05.nzb&i=203417&r=c42ce8f241c35f7783e4ef0203b5c912

Instead it should prepend the address of the server where it found the nzb.

If I don't use the reverse proxy setting and I access directly the server at test:5000 it works ok.

etomm commented 10 years ago

Just to give a log from couchpotato after I set up the server without the reverse proxy

12-05 02:13:38 INFO [hpotato.core.plugins.base] Opening url: http://localhost:5000/api?t=get&id=k35aJVOyRihihIpXJvo84zsDAiu9hvt0JfpCSvay4voaSjrfRTmvedApevWx4CWqNcbIAC6XGc5CATBaNVbveCuKeC6pRKpYAf4rEc6qeTstGI4IEdeaeKG0NnAIGVPCeToKGTJxevWa4dAqeCbTACoCNcmI&apikey=xxx12-05 02:13:41 ERROR [ore.providers.nzb.newznab] Failed download from localhost: Traceback (most recent call last): File "D:\Configurations\CouchPotato\CouchPotato-2.3.1.win32\couchpotato\core\providers\nzb\newznab\main.py", line 162, in download File "D:\Configurations\CouchPotato\CouchPotato-2.3.1.win32\couchpotato\core\plugins\base.py", line 183, in urlopen File "urllib2.pyc", line 127, in urlopen File "urllib2.pyc", line 410, in open File "urllib2.pyc", line 523, in http_response File "urllib2.pyc", line 442, in error File "urllib2.pyc", line 382, in _call_chain File "urllib2.pyc", line 629, in http_error_302 File "urllib2.pyc", line 410, in open File "urllib2.pyc", line 523, in http_response File "urllib2.pyc", line 442, in error File "urllib2.pyc", line 382, in _call_chain File "urllib2.pyc", line 629, in http_error_302 File "urllib2.pyc", line 410, in open File "urllib2.pyc", line 523, in http_response File "urllib2.pyc", line 442, in error File "urllib2.pyc", line 382, in _call_chain File "urllib2.pyc", line 629, in http_error_302 File "urllib2.pyc", line 410, in open File "urllib2.pyc", line 523, in http_response File "urllib2.pyc", line 442, in error File "urllib2.pyc", line 382, in _call_chain File "urllib2.pyc", line 629, in http_error_302 File "urllib2.pyc", line 410, in open File "urllib2.pyc", line 523, in http_response File "urllib2.pyc", line 442, in error File "urllib2.pyc", line 382, in _call_chain File "urllib2.pyc", line 619, in http_error_302 HTTPError: HTTP Error 301: The HTTP server returned a redirect error that would lead to an infinite loop. The last 30x error message was: Moved Permanently

I think the redirect part is not working quite good.