Page 1 of 1

not well-formed (invalid token)

Posted: October 2nd, 2011, 3:48 pm
by jimcampbell100
Version: 0.5.3
OS: Linux
Install-type: QNAP qpkg
Skin (if applicable): Plush
Firewall Software: None
Are you using IPV6? No
Is the issue reproducible? Yes

I've installed SABnzbd along with Sick Beard, and it is working great.

I also use SABconnect++ to integrate with NZBMatrix. When I click the icon that is added by SABconnect++ to the NZBmatrix web page, it tries to send the nzb url to SABnzbd. In the queue, SAB says "Trying to fetch [url]", and never gets past that. In the log, it says:

2011-10-02 16:26:55,926::INFO::[__init__:379] Fetching http://nzbmatrix.com/nzb-details.php?id ... p=1&cat=25
2011-10-02 16:26:55,975::INFO::[nzbqueue:92] Saving queue
2011-10-02 16:26:55,977::INFO::[__init__:641] Saving data for SABnzbd_nzo_mRxF3X in /share/Qmultimedia/usenet/cache/SABnzbd_nzo_mRxF3X
2011-10-02 16:26:56,008::INFO::[__init__:641] Saving data for queue9.sab in /share/Qmultimedia/usenet/cache/queue9.sab
2011-10-02 16:26:56,060::INFO::[urlgrabber:126] Grabbing URL https://nzbmatrix.com/api-nzb-download. ... =<username removed>&apikey=<api key removed>
2011-10-02 16:26:56,244::WARNING::[nzbstuff:571] Invalid NZB file api-nzb-download.php!id=636328&username=<usernamer removed>&apikey=<api key removed>2.nzb, skipping (reason=not well-formed (invalid token), line=1)

If i take that url and paste it into my broswer, the nzb file downloads and I can load it manually into SAB and it works fine.

I am getting similar errors for RSS feeds - those urls also load fine in my browser.

Any idea what I may be doing wrong? This has been going on for days.

Thanks!
20

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 4:03 pm
by shypike
nzbmatrix.com has often problems.
Sometimes it just spits out some html page with error messages instead of something useful.
Remove all nzbmatrix items from the queue and try again.

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 4:19 pm
by jimcampbell100
Yes, I have done that, and just did it again (along with restarting SAB). No change.

This happens with every nzb I've tried, and has been happening since I installed over a week ago.

Thanks-

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 4:30 pm
by shypike
Hmmm,
Check your userid and apikey for nzbmatrix.
Perhaps you should create a new apikey on the nzbmatrix site and enter that into SABnzbd again.
You will need to remove existing fetch entries from the queue.

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 4:49 pm
by jimcampbell100
OK, I also upgraded to 0.6.9.

I got a new api key from nzbmatrix, still doesn't work. The queue was empty when I tried this.

Also note that the nzb downloads fine (and looks fine) when I paste the url from the log into my browser...

2011-10-02 17:43:21,572::INFO::[__init__:446] Fetching http://nzbmatrix.com/nzb-details.php?id ... p=1&cat=25
2011-10-02 17:43:21,577::INFO::[nzbqueue:167] Saving queue
2011-10-02 17:43:21,583::DEBUG::[__init__:769] Saving data for SABnzbd_nzo_DZ1aYb in /share/HDA_DATA/.qpkg/SABnzbdplus/Config/admin/future
2011-10-02 17:43:21,592::INFO::[__init__:838] Saving data for queue9.sab in /share/HDA_DATA/.qpkg/SABnzbdplus/Config/admin/queue9.sab
2011-10-02 17:43:21,601::INFO::[urlgrabber:112] Grabbing URL https://api.nzbmatrix.com/v1.1/download ... ey=<apikey>
2011-10-02 17:43:21,737::INFO::[misc:718] Creating directories: /share/HDA_DATA/Qmultimedia/usenet/incomplete/download.php?id=636328&username=<username>&apikey=<apikey>
2011-10-02 17:43:21,763::WARNING::[nzbstuff:670] Empty NZB file download.php?id=636328&username=<username>&apikey=<apikey>.nzb
2011-10-02 17:43:21,768::INFO::[__init__:827] /share/HDA_DATA/.qpkg/SABnzbdplus/Config/admin/future/SABnzbd_nzo_DZ1aYb removed
2011-10-02 17:43:21,781::INFO::[nzbqueue:167] Saving queue
2011-10-02 17:43:21,784::INFO::[__init__:838] Saving data for queue9.sab in /share/HDA_DATA/.qpkg/SABnzbdplus/Config/admin/queue9.sab

Thanks for the help!

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 5:28 pm
by shypike
I don't know what's going on.
nzbmatrix is known to deliver empty NZB files occasionally, but this report is OK when I test it.

O.t.o.h. you're running release 0.5.3, which we do not support any more.
There were quite a few changes in SABnzbd to deal better with nzbmatrix problems.

Re: not well-formed (invalid token)

Posted: October 2nd, 2011, 5:48 pm
by jimcampbell100
I upgraded to the most recent qnap version 0.6.9 before my last post. That error log was from that version.

It is weird - I'm not sure why is works with SickBeard.

Re: not well-formed (invalid token)

Posted: October 3rd, 2011, 1:38 am
by shypike
SickBeard doesn't retrieve NZB files from nzbmatrix, it let's SABnzbd do that.

Re: not well-formed (invalid token)

Posted: October 3rd, 2011, 5:49 pm
by jimcampbell100
Yes, I get that, but SAB was able to download when SickBeard passed the nzb link to it.

Anyway, I figured it out. The NAS used a different DNS than my personal computer. The NAS used OpenDNS, which was specifically setup to block "file sharing sites" like NZBMatrix. I changed it to another DNS, and now it works fine. Thanks for the help!