not well-formed (invalid token)

Get help with all aspects of 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
jimcampbell100
Newbie
Newbie
Posts: 5
Joined: October 2nd, 2011, 3:33 pm

not well-formed (invalid token)

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

Re: not well-formed (invalid token)

Post 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.
jimcampbell100
Newbie
Newbie
Posts: 5
Joined: October 2nd, 2011, 3:33 pm

Re: not well-formed (invalid token)

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

Re: not well-formed (invalid token)

Post 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.
jimcampbell100
Newbie
Newbie
Posts: 5
Joined: October 2nd, 2011, 3:33 pm

Re: not well-formed (invalid token)

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

Re: not well-formed (invalid token)

Post 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.
jimcampbell100
Newbie
Newbie
Posts: 5
Joined: October 2nd, 2011, 3:33 pm

Re: not well-formed (invalid token)

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

Re: not well-formed (invalid token)

Post by shypike »

SickBeard doesn't retrieve NZB files from nzbmatrix, it let's SABnzbd do that.
jimcampbell100
Newbie
Newbie
Posts: 5
Joined: October 2nd, 2011, 3:33 pm

Re: not well-formed (invalid token)

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