Page 1 of 1

Beta5 RSS Config Error

Posted: January 24th, 2016, 9:29 am
by 88keyz
I get the following error when click the RSS config link (ie. http://localhost:8080/sabnzbd/config/rss/). Running on Ubuntu Server LTS 14.04. Get the same thing from both JCFP's package and git source.

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "/usr/share/sabnzbdplus/cherrypy/lib/encoding.py", line 217, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/share/sabnzbdplus/cherrypy/_cpdispatch.py", line 61, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/share/sabnzbdplus/sabnzbd/interface.py", line 1870, in index
    rss[feed]['baselink'] = get_base_url(rss[feed]['uri'])
  File "/usr/share/sabnzbdplus/sabnzbd/misc.py", line 1299, in get_base_url
    return ".".join(len(url_split[-2]) < 4 and url_split[-3:] or url_split[-2:])
IndexError: list index out of range

Powered by CherryPy 3.8.0 
Checked the Windows version, same error.

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 670, in respond
  File "cherrypy\lib\encoding.pyo", line 217, in __call__
  File "cherrypy\_cpdispatch.pyo", line 61, in __call__
  File "sabnzbd\interface.pyo", line 1870, in index
  File "sabnzbd\misc.pyo", line 1297, in get_base_url
IndexError: list index out of range

Powered by CherryPy 3.8.0 
Edit: Just checked Beta4 on Windows and it works fine so it definitely seems something that changed in Beta5 that is the problem.

Re: Beta5 RSS Config Error

Posted: January 24th, 2016, 10:08 am
by safihre
Yes I altered that function after b4.
What is the URL to your Rss feed? It somehow fails to get the main domain from the URL.
If you can't share it with the whole forum, can also pm me :)

Re: Beta5 RSS Config Error

Posted: January 24th, 2016, 12:29 pm
by 88keyz
Found the error. It seems that Beta5 doesn't like local hostnames but works fine with a FQDN.

Produces Error:
http://localhost/rss?t=5000&dl=1&i=1&r= ... ea86baecdd

Works Fine:
http://sample.com/rss?t=5000&dl=1&i=1&r ... ea86baecdd

Re: Beta5 RSS Config Error

Posted: January 24th, 2016, 1:01 pm
by safihre
Will change this! Will also see if ipv6 addresses work, didn't check that yet!

Thank you for your feedback :)