Page 1 of 1

urlgrabber crashed, missing credentials with nzbxxx

Posted: November 30th, 2012, 4:11 am
by Smudge
version 0.7.6, Mac OS X 10.8.2

A couple of issues regarding urlgrabber crashing when trying to download from nzbxxx.

In association to NZBMatrix/NZBxxx, if their API is acting up and my API key isn't working, I get an "error:invalid_login" message but instead of SAB handling it properly, urlgrabber crashes.

2012-11-30 01:44:24,204::DEBUG::[__init__:350] Starting urlgrabber
2012-11-30 01:44:24,204::INFO::[urlgrabber:77] URLGrabber starting up
2012-11-30 01:44:29,205::INFO::[urlgrabber:116] Grabbing URL http://api.nzbxxx.com/v1.1/download.php ... y=[REMOVED]
2012-11-30 01:44:29,597::ERROR::[urlgrabber:227] URLGRABBER CRASHED
Traceback (most recent call last):
File "sabnzbd/urlgrabber.pyc", line 169, in run
File "sabnzbd/urlgrabber.pyc", line 432, in get_matrix_category
TypeError: cannot concatenate 'str' and 'NoneType' objects


This was from an RSS feed where I had the API key included in the RSS URL. I had to reset my key and instead of putting the credentials in the URL, I left them out as they are also included in the Index Sites configuration screen. They should be included in the URL automatically but they are not inserted properly into the fetching URL.

This fails when the URL is manually added...

2012-11-30 01:44:39,994::INFO::[urlgrabber:116] Grabbing URL https://api.nzbxxx.com/v1.1/download.ph ... e=&apikey=
2012-11-30 01:44:41,051::ERROR::[urlgrabber:227] URLGRABBER CRASHED
Traceback (most recent call last):
File "sabnzbd/urlgrabber.pyc", line 169, in run
File "sabnzbd/urlgrabber.pyc", line 432, in get_matrix_category
TypeError: cannot concatenate 'str' and 'NoneType' objects


...or from the RSS without the credentials... I noticed that the __init__ function isn't including the credentials so urlgrabber would obviously fail without them.

2012-11-30 02:03:12,959::INFO::[__init__:492] Fetching http://api.nzbxxx.com/v1.1/download.php ... e=&apikey=
2012-11-30 02:03:12,962::INFO::[urlgrabber:116] Grabbing URL https://api.nzbxxx.com/v1.1/download.ph ... e=&apikey=
2012-11-30 02:03:13,982::ERROR::[urlgrabber:227] URLGRABBER CRASHED

Re: urlgrabber crashed, missing credentials with nzbxxx

Posted: November 30th, 2012, 4:34 am
by shypike
I think its just a dumb programming error in SABnzbd.
Will be fixed in the next release, due soon.

BTW: If you use an RSS feed with proper credentials in the feed URL, then NZB links should already have credentials.
Moreover, hidden in the sabnzbd.ini file there are two fields where you can enter your nzbxxx credentials.
(We chose not advertise XXX support in the user interface.)

Re: urlgrabber crashed, missing credentials with nzbxxx

Posted: November 30th, 2012, 5:28 pm
by Smudge
ah, now that I think of it, the nzbmatrix fields in the web gui wouldn't work for nzbxxx as they are separate accounts with different API keys, even if the username is the same.
Thanks for the info about the ini fields. Good to know.

Re: urlgrabber crashed, missing credentials with nzbxxx

Posted: December 9th, 2012, 1:06 am
by nuxt
shypike wrote:I think its just a dumb programming error in SABnzbd.
Will be fixed in the next release, due soon.

BTW: If you use an RSS feed with proper credentials in the feed URL, then NZB links should already have credentials.
Moreover, hidden in the sabnzbd.ini file there are two fields where you can enter your nzbxxx credentials.
(We chose not advertise XXX support in the user interface.)

Just came across this error myself. I have sabconnect++ for chrome, which allows for NZBXXX API credentials, so thats where I first encountered the error. I went into the sabnzbd ini and added them anyway, of course this had no change on the outcome. On a separate matter, why is it hidden? Sounds like whoever decided to hide it is a prude! ;)

I tried your solution of adding it via RSS feeds, something I never normally use... however, same outcome. I get the same urlgrabber error no matter what I try to do. RSS with API or Directly with API. When is this likely to be fixed, as I'm sure you can understand that manually saving NZBs and having to click them open is something of the past O0

Re: urlgrabber crashed, missing credentials with nzbxxx

Posted: December 9th, 2012, 3:54 am
by shypike
Nothing to do with prudeness.
Many countries would require popups that warn about age limitations.
We simply won't go into that sort of stuff.
The xxx fields do work, but you have to stop SABnzbd first, edit and start.

Re: urlgrabber crashed, missing credentials with nzbxxx

Posted: December 9th, 2012, 8:16 am
by nuxt
shypike wrote:Nothing to do with prudeness.
Many countries would require popups that warn about age limitations.
We simply won't go into that sort of stuff.
The xxx fields do work, but you have to stop SABnzbd first, edit and start.

Well, with the recent news to matrix... this doesn't bother me any more. Got bigger issues to think about now! Thanks for the reply and didn't know about age limitations, TIL! :)