urlgrabber crashed, missing credentials with nzbxxx

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
Smudge
Newbie
Newbie
Posts: 16
Joined: February 25th, 2010, 12:14 am

urlgrabber crashed, missing credentials with nzbxxx

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: urlgrabber crashed, missing credentials with nzbxxx

Post 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.)
Smudge
Newbie
Newbie
Posts: 16
Joined: February 25th, 2010, 12:14 am

Re: urlgrabber crashed, missing credentials with nzbxxx

Post 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.
nuxt
Newbie
Newbie
Posts: 9
Joined: December 9th, 2012, 1:03 am

Re: urlgrabber crashed, missing credentials with nzbxxx

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: urlgrabber crashed, missing credentials with nzbxxx

Post 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.
nuxt
Newbie
Newbie
Posts: 9
Joined: December 9th, 2012, 1:03 am

Re: urlgrabber crashed, missing credentials with nzbxxx

Post 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! :)
Post Reply