[0.7.0RC2] RSS Feed authentication error FP

Questions and bug reports for Beta releases should be posted here.

[0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 3:09 am

Since the update to RC2, my nzbs*org RSS feed is not being downloaded anymore. When I click the "Force Download" button it shows an error:
Do not have valid authentication for feed


There is no authentication on the RSS feed and it works just fine in my browser and it even contains the items the RSS is looking for.
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby shypike » June 7th, 2012, 6:34 am

Generate a new RSS URL from nzbs.org's website.
That you can show the feed in the browser is no proof, because you're already logged in.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 6:41 am

AFAIK you cannot generate a new one, but there does not appear to be need for that either.
I've tried it in a browser (and in cognito mode) - so I'm not logged in to the site - and its showing all proper results.

The feed doesn't have authentication (HTTP Auth), yet Sab somehow thinks it does.

This was working fine with ( at least beta 8 ), just confirmed this with someone else using that version.
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby shypike » June 7th, 2012, 9:23 am

Nothing in that area has changed, I used it even yesterday successfully.
Does the problem go away if you go back to Beta8?
If not, then there's something going on at the site's side.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 9:44 am

Not sure if this helps but this is what the logs of RC2 indicate:
2012-06-07 15:25:22,353::INFO::[rss:488] Starting scheduled RSS read-out
2012-06-07 15:25:22,356::DEBUG::[rss:324] Running feedparser on http://nzbs.org/rss?t=5040&dl=1&i=XXXX& ... mt=2&res=2
2012-06-07 15:25:22,370::DEBUG::[rss:326] Done parsing http://nzbs.org/rss?t=5040&dl=1&i=XXXX& ... mt=2&res=2
2012-06-07 15:25:22,370::INFO::[rss:335] Do not have valid authentication for feed TVNZB
2012-06-07 15:25:37,386::INFO::[__init__:880] Saving data for rss_data.sab in /home/username/.sabnzbd/admin/rss_data.sab
2012-06-07 15:25:37,433::INFO::[rss:502] Finished scheduled RSS read-out


I haven't changed anything recently, just upgraded to RC2 (via Ubuntu PPA) and this was broken.
This is very interesting:

I reset my API/RSS key on the website and changed the link in Sabnzbd, then ticked the box to enable the feed again. It started reading immediately:
2012-06-07 15:37:25,458::INFO::[rss:502] Finished scheduled RSS read-out
2012-06-07 15:38:45,245::DEBUG::[interface:1632] RSS READOUT = False
2012-06-07 15:38:45,300::DEBUG::[rss:392] Trying title XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2012-06-07 15:38:45,309::DEBUG::[rss:392] Trying title XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2012-06-07 15:38:45,310::DEBUG::[rss:420] Filter rejected on rule 5
....
2012-06-07 15:39:22,755::DEBUG::[interface:1632] RSS READOUT = True
.....
2012-06-07 15:39:22,778::INFO::[rss:335] Do not have valid authentication for feed TVNZB


Did it just read from a cached file, or did it actually read the RSS file successfully?
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 10:14 am

Just tried beta3 on my Windows PC (Rc2 runs on my Ubuntu 12.04 server) and it reads just fine.
I'm testing with RC2 on Windows now.
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby shypike » June 7th, 2012, 10:22 am

When you see "readout=False", the existing entries evaluated again.
After "readout=True", I see the error message appearing again.

All of the feed access and parsing is done by a third-party module that hasn't changed for years.
The RCs contain no changes in RSS handling.
I'll do some tests again, but I'm still thinking that it's a site issue.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 10:23 am

Ok! I figured it out by using the commandline interpreter...
It was indeed a local issue on my server. For some reason everything passes trough my apt proxy, which raises a 403.

Problem solved, not a bug!
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby shypike » June 7th, 2012, 10:31 am

Thanks, one item less on my to-do.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 10:53 am

One follow up question though, do you have any idea where Sabnzbd / Python gets the proxy information from?
As far as I can see there is no proxy configured, its working fine from the Python Intepreter but simply not from Sabnzbd (not even after a restart of the process)
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby shypike » June 7th, 2012, 11:32 am

It's a side effect of the Python runtime library.
I know that on Windows it looks at IE's proxy settings.
User avatar
shypike
Administrator
Administrator
 
Posts: 16535
Joined: January 18th, 2008, 1:49 pm

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 11:44 am

But why would this work just fine then?
Code: Select all
import feedparser
print feedparser.parse('http://..........')


but not from SABnzbd? Is there anything I can debug further to see what is loading it? There is no mention of the proxy on any of the files in /etc. Rather odd.
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Postby Sypher » June 7th, 2012, 11:53 am

Aha, sabnzbd restart is not the same as shutdown & start. Fixed!
Sypher
Release Testers
Release Testers
 
Posts: 82
Joined: April 10th, 2008, 11:23 am


Return to Beta Releases