Page 1 of 1

error: Session Key Required ??

Posted: April 16th, 2009, 11:38 pm
by reznorio
Hi,

I setup a few RSS TV show feeds and they seem to come through correctly. I set a rule to reject at first so I can pick and choose as I like. The problem is when I click Download beside the tv show nzb, I get a blank screen with "error: Session Key Required" and nothing else. In fact I get that same error on  every single rss site I try. The download feature button is broken?  ???

feed: http://www.tvnzb.com/tvnzb_new.rss

example:
Feed2
Matched

Not matched
Download  Survivor.S18E09.720p.HDTV.x264-ORENJi
Download  Southland.S01E02.HDTV.XviD-2HD
Download  Bones.S04E21.720p.HDTV.x264-CTU

version 0.4.9

Re: error: Session Key Required ??

Posted: April 17th, 2009, 1:32 am
by shypike
Yes it is broken.
Of course we only found this a few hours after the release.
There a few other obscure links that have the same problem.
The one you found is the most prominent.
We'll fix this with a new release early next week.

Re: error: Session Key Required ??

Posted: April 17th, 2009, 11:41 am
by reznorio
Great!

Thanks for your prompt reply!

Greasemonkey Script to fix RSS Preview Download Link

Posted: April 19th, 2009, 12:38 pm
by binutils
I don't know how to compile the interface.py so I just did this for now.

http://www.md5.com/sabnzbd/

Re: error: Session Key Required ??

Posted: April 19th, 2009, 6:59 pm
by relman
Just a quick note to say I am getting the same issue but only when using "Get bookmarks" option under Newzbin.

thanks.

Re: error: Session Key Required ??

Posted: April 20th, 2009, 1:26 am
by shypike
relman wrote: Just a quick note to say I am getting the same issue but only when using "Get bookmarks" option under Newzbin.

thanks.
In a specific skin ? (Default/smpl/plush) ?

Re: error: Session Key Required ??

Posted: April 20th, 2009, 6:57 am
by relman
sorry while using Default skin

Re: error: Session Key Required ??

Posted: April 21st, 2009, 1:36 am
by shypike
Confirmed, will be fixed asap.

Re: error: Session Key Required ??

Posted: April 21st, 2009, 7:55 am
by Cheku
Same error, just using a standard installation
Tried grabbing nzb's from

http://irc.newzbin.com/~fatfecker/TV/
[Add to SAB] -> http://localhost:8081/sabnzbd//addID?pp=3&id=4279439

Error, Session Key required...

Any help

Re: error: Session Key Required ??

Posted: April 21st, 2009, 10:08 am
by shypike
In principle you should be able to put this in the SABnzbd setup field of fatachecker.
http://localhost:8081/sabnzbd/api/apikey=BLABLA

However, I suspect fatchecker will then create something like this:
http://localhost:8081/sabnzbd/api/apikey=BLABLA/addid

In that case, the fatchecker tool needs to be changed, it must handle the API key properly.
Please contact the developer.

BTW: This website illustrates the very problem we tried to fix with 0.4.9.
Namely that a external website can do dangerous things with your local SABnzbd server.
You choose to trust the fatchecker website not to do nasty things with SABnzbd.
You can still do that, but only when you supply the site your secret API-key.

Re: error: Session Key Required ??

Posted: April 21st, 2009, 6:32 pm
by reznorio
Hi, while I'm not a python guy (more perl/php), I checked interface.py and changed this line

I added session=%s in the link part and sabnzbd.API_KEY in the format arguments.

It worked, hope it helps until .5 comes out!

badStr += 'Download   %s' % \
                (sabnzbd.API_KEY,qfeed, name, cat, pp, xml_name(job[1]))

reznorio

Re: error: Session Key Required ??

Posted: April 29th, 2009, 11:25 am
by jocke
-> History
-> Show details
Any entry that's been using a UserScript
-> Show script output
http://a.b.c.d:1234/sabnzbd/history/scr ... e=name.log
error: Session Key Required

Script runs just fine thou.

Re: error: Session Key Required ??

Posted: April 29th, 2009, 11:26 am
by switch
This (and the other mentioned errors) are fixed in SABnzbd 0.4.10, which will be released after testing.

Re: error: Session Key Required ??

Posted: April 29th, 2009, 11:37 am
by jocke
Nice.

What causes it?

Going to "C:\Documents and Settings\Administrator\Local Settings\Application Data\sabnzbd\logs", the logfile itself is there:
[Cleanup] Cleaning up download directory: E:\Downloads
[Cleanup] Deleting .nzb files
[Cleanup] Deleting .sfv files
[Cleanup] Deleting .nfo files
[Cleanup] Deleting .sub files
[Cleanup] Deleting .idx files
[Cleanup] Deleted 24 files (12 nfo, 12 nzb, 0 sfv, 0 sub, 0 idx)