[0.7.0RC2] RSS Feed authentication error FP

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
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

[0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by shypike »

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.
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by shypike »

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.
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by shypike »

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.
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by shypike »

Thanks, one item less on my to-do.
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by shypike »

It's a side effect of the Python runtime library.
I know that on Windows it looks at IE's proxy settings.
Sypher
Release Testers
Release Testers
Posts: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

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: 75
Joined: April 10th, 2008, 10:23 am

Re: [0.7.0RC2] RSS Feed authentication error FP

Post by Sypher »

Aha, sabnzbd restart is not the same as shutdown & start. Fixed!
Post Reply