[Solved] Adding links directly from indexer not working

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.
juju75
Newbie
Newbie
Posts: 8
Joined: September 29th, 2015, 3:22 am

[Solved] Adding links directly from indexer not working

Post by juju75 »

Hi,

running Linuxmint 17.2 / xfce / 64bit
sabnzb 0.8.0beta1 installed via ppa

since the last update I'm getting an error when clicking the download link in indexers (tested with 3 different indexers). Tested with different files. When downloading and adding the nzb manually it works fine. any ideas?

cheers

Code: Select all

2015-09-29 10:14:14,892::ERROR::[_cplogging:216] [29/Sep/2015:10:14:14] HTTP 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 663, in respond
    self.body.process()
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 996, in process
    super(RequestBody, self).process()
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 540, in process
    proc(self)
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 223, in process_multipart_form_data
    process_multipart(entity)
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 213, in process_multipart
    part = entity.part_class.from_fp(entity.fp, ib)
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 599, in from_fp
    headers = cls.read_headers(fp)
  File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 615, in read_headers
    raise ValueError("MIME requires CRLF terminators: %r" % line)
ValueError: MIME requires CRLF terminators: 'Content-Disposition: form-data; name="name"; filename="XXXXXXXXXXXXXXXXXXXXXXX.par2.nzb"\n'
(changed the actual nzb name to XXXXXXXXXXXXXXXXXXXXXXX)
Last edited by juju75 on September 30th, 2015, 9:54 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Adding links directly from indexer not working

Post by shypike »

Can you PM a few links?
Doesel
Newbie
Newbie
Posts: 4
Joined: September 30th, 2015, 1:55 am

Re: Adding links directly from indexer not working

Post by Doesel »

Hey,
any news on this? Have the same problem since updating to this version...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Adding links directly from indexer not working

Post by shypike »

Doesel wrote:Hey,
any news on this? Have the same problem since updating to this version...
It would be helpful if you tell which operating system you are using.
Doesel
Newbie
Newbie
Posts: 4
Joined: September 30th, 2015, 1:55 am

Re: Adding links directly from indexer not working

Post by Doesel »

Oh sorry :)
I'm running sabnzbd 0.8.0beta1 on my ubuntu headless server. Do you need more infos?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Adding links directly from indexer not working

Post by shypike »

Doesel wrote:Oh sorry :)
I'm running sabnzbd 0.8.0beta1 on my ubuntu headless server. Do you need more infos?
The Ubuntu release would be handy :)
You're running the server version, I assume?
Also, please PM me an example link.

Chances are that you're using Python 2.7.9 or 2.7.10 which verifies HTTPS certificates.
If so, go to Config->Special and disable enable_https_verification
(Or use a better indexer).
Doesel
Newbie
Newbie
Posts: 4
Joined: September 30th, 2015, 1:55 am

Re: Adding links directly from indexer not working

Post by Doesel »

I'm running Ubuntu 12.04.5 LTS, the Python version is 2.7.3.

I'll disable the https_verification and will test again. I can provide links later today, I'm not at home right now ;)

Thanks in advance!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Adding links directly from indexer not working

Post by shypike »

Doesel wrote:I'm running Ubuntu 12.04.5 LTS, the Python version is 2.7.3.

I'll disable the https_verification and will test again. I can provide links later today, I'm not at home right now ;)

Thanks in advance!
It's not the HTTPS verification, since you're on Python 2.7.3.
I still appreciate receiving the link.
User avatar
jcfp
Release Testers
Release Testers
Posts: 1005
Joined: February 7th, 2008, 12:45 pm

Re: Adding links directly from indexer not working

Post by jcfp »

While you're at it, please clarify what you guys mean by this:
an error when clicking the download link in indexers
Is that download link provided by indexer-based integration (your api or nzb key and address details filled out on the indexer site allowing it direct access to your sab queue) or by a browser plugin (nzbfox, nzbdstatus, ...) that adds extra links into the webpages of the indexer?
juju75
Newbie
Newbie
Posts: 8
Joined: September 29th, 2015, 3:22 am

Re: Adding links directly from indexer not working

Post by juju75 »

jcfp wrote:While you're at it, please clarify what you guys mean by this:
an error when clicking the download link in indexers
Is that download link provided by indexer-based integration (your api or nzb key and address details filled out on the indexer site allowing it direct access to your sab queue) or by a browser plugin (nzbfox, nzbdstatus, ...) that adds extra links into the webpages of the indexer?
Hi,

thanks problem found - it's the plugin! And sorry for not clarifying in the first place (after all these years I forgot that it's a separate plugin directing the nzb ::) )
The problem was the sabnzbdfox 1.2.1-signed plugin which I was using ever since but it seems to be outdated for version 0.8.x
I switched to the latest nzbfox 1.4.1-fix plugin and it everything runs like it is supposed to.

Thanks to you two for support!

cheers
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Adding links directly from indexer not working

Post by shypike »

juju75 wrote: The problem was the sabnzbdfox 1.2.1-signed plugin which I was using ever since but it seems to be outdated for version 0.8.x
There must have been a subtle change in the API that breaks this plugin, that we're not aware of.
nzbdStatus fails as well with 0.8.0

The API has been extended, but kept backward compatible, at least that was the intention.
Some return values have changed, but in a way that a well-written plugin would be able to handle.
Possibly the plugin writer took some shortcuts.
(Or we did something stupid.)
Doesel
Newbie
Newbie
Posts: 4
Joined: September 30th, 2015, 1:55 am

Re: [Solved] Adding links directly from indexer not working

Post by Doesel »

Ok, and a quick reply from my side. It is working now, but I don't know why, what changed or whatever. I first tried to disable https_verification, but that didn't change anything, so I enabled it again. And since then works again.

Thanks for your help!
User avatar
safihre
Administrator
Administrator
Posts: 5537
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [Solved] Adding links directly from indexer not working

Post by safihre »

I think it's probably the CherryPy upgrade in 0.8 causing this?
Indeed the plugin should send the right request, but maybe CherryPy got pickier?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
dyna
Newbie
Newbie
Posts: 3
Joined: October 16th, 2015, 4:00 am

Re: [Solved] Adding links directly from indexer not working

Post by dyna »

I have the same problem.
Using 0.8.0.Beta1 on Ubuntu 15.04.
When adding nzbs, no matter from which indexer, addon for firefox or directly to sabnzbd, i get this error.
However, when sickrage adds them it works.

Code: Select all

[16/Oct/2015:11:09:26] HTTP Traceback (most recent call last): File "/usr/share/sabnzbdplus/cherrypy/_cprequest.py", line 663, in respond self.body.process() File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 996, in process super(RequestBody, self).process() File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 540, in process proc(self) File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 223, in process_multipart_form_data process_multipart(entity) File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 213, in process_multipart part = entity.part_class.from_fp(entity.fp, ib) File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 599, in from_fp headers = cls.read_headers(fp) File "/usr/share/sabnzbdplus/cherrypy/_cpreqbody.py", line 615, in read_headers raise ValueError("MIME requires CRLF terminators: %r" % line) ValueError: MIME requires CRLF terminators: 'Content-Disposition: form-data; name="name"; filename="nameofit.nzb"\n'
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: [Solved] Adding links directly from indexer not working

Post by shypike »

It's probably what Safihre said: the new web CherryPy fromework only accepts
standards-compliant communication.
The benefits of using the new CherryPy outweighs the fact that it is more pickier about standards.
Post Reply