Page 1 of 1

CouchPotato NZB ERROR

Posted: September 28th, 2014, 3:28 am
by landonw347
I have my SABnzbd up and running on my Unraid server. Works fine with sickbeard. CouchPotato is another story.

When I try sending a NZB to SABnzbd from CouchPotato I get the following error in the log.

09-28 02:22:58ERROR[.core.downloaders.sabnzbd] Failed sending release, use API key, NOT the NZB key: Traceback (most recent call last):
HTTPError: 500 Server Error: Internal Server Error
09-28 02:22:58INFO[tato.core.plugins.release] Tried to download, but the "nzb" downloader gave an error

I've checked the API key several times and it is correct.

The error in SABnzbd is followed.

[28/Sep/2014:02:22:54] HTTP Traceback (most recent call last): File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cprequest.py", line 660, in respond response.body = self.handler() File "/mnt/disk1/couchpotatosickbeard/cherrypy/lib/encoding.py", line 193, in __call__ self.body = self.oldhandler(*args, **kwargs) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpdispatch.py", line 25, in __call__ return self.callable(*self.args, **self.kwargs) File "/mnt/disk1/couchpotatosickbeard/sabnzbd/interface.py", line 425, in api return api_handler(kwargs) File "/mnt/disk1/couchpotatosickbeard/sabnzbd/api.py", line 101, in api_handler response = _api_table.get(mode, _api_undefined)(name, output, kwargs) File "/mnt/disk1/couchpotatosickbeard/sabnzbd/api.py", line 317, in _api_addfile size = len(name.value) TypeError: object of type 'NoneType' has no len()

I tried using https and heres the error in SABnzbd

[28/Sep/2014:02:34:42] HTTP Traceback (most recent call last): File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cprequest.py", line 653, in respond self.body.process() File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 707, in process super(RequestBody, self).process() File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 320, in process proc(self) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 127, in process_multipart_form_data process_multipart(entity) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 121, in process_multipart part.process() File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 318, in process self.default_proc() File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 452, in default_proc self.file = self.read_into_file() File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 464, in read_into_file self.read_lines_to_boundary(fp_out=fp_out) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 396, in read_lines_to_boundary line = self.fp.readline(1 << 16) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 595, in readline data = self.read(chunksize) File "/mnt/disk1/couchpotatosickbeard/cherrypy/_cpreqbody.py", line 560, in read data = self.fp.read(chunksize) File "/mnt/disk1/couchpotatosickbeard/cherrypy/wsgiserver/__init__.py", line 265, in read data = self.rfile.read(size) File "/mnt/disk1/couchpotatosickbeard/cherrypy/wsgiserver/__init__.py", line 932, in read assert n <= left, "recv(%d) returned %d bytes" % (left, n) AssertionError: recv(29) returned 16384 bytes

Any help is appreciated.

Re: CouchPotato NZB ERROR

Posted: September 28th, 2014, 11:29 am
by shypike
SABnzbd uses two api keys. One for only adding nab files, the other for full access.
It seems that CouchPotato needs full access, so pick the right key.
If you did pick the right key, we'll examine this further.

Re: CouchPotato NZB ERROR

Posted: September 28th, 2014, 1:20 pm
by landonw347
Thank you for the reply shypike.

https://drive.google.com/file/d/0B9ZyRF ... sp=sharing

I used the highlighted text for the api. Is this the correct one?

Re: CouchPotato NZB ERROR

Posted: September 28th, 2014, 2:19 pm
by shypike
That's the correct key.
If SickBeard is working ok and SABnzbd too, than it must be a CP problem.
Don't use https, because it looks like there's a known bug in CP's web framework.

Re: CouchPotato NZB ERROR

Posted: September 28th, 2014, 2:29 pm
by landonw347
Alright. Thank you for the information. I will look into fixing my CouchPotato and get back to you.

Re: CouchPotato NZB ERROR

Posted: September 29th, 2014, 5:16 pm
by landonw347
I reinstalled CouchPotato and reverted to version 2.3 for Cherrypy and everything is up and running now. Thanks for the help!