Beta5 RSS Config Error

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
88keyz
Newbie
Newbie
Posts: 26
Joined: December 5th, 2012, 11:59 am

Beta5 RSS Config Error

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Beta5 RSS Config Error

Post 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 :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
88keyz
Newbie
Newbie
Posts: 26
Joined: December 5th, 2012, 11:59 am

Re: Beta5 RSS Config Error

Post 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
User avatar
safihre
Administrator
Administrator
Posts: 5524
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Beta5 RSS Config Error

Post by safihre »

Will change this! Will also see if ipv6 addresses work, didn't check that yet!

Thank you for your feedback :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply