Page 1 of 1

Cherrypy error in V1.0.0??

Posted: March 21st, 2016, 10:43 pm
by viTRIfY13
Hi, I recently upgrade from 0.7.20 to v1.0.0 and I'm getting some errors that I'm hoping you can help me with. I use PowerNZB on my phone to search an index website, grab the nzb, and then upload it to my sabnzbd at home. Everything worked perfectly with 0.7.20, but now with the upgrade, I'm getting the following error and I don't know what it means:

Code: Select all

ERROR 21/03/2016 21:00 [21/Mar/2016:21:00:59] HTTP 
Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 663, in respond
  File "cherrypy\_cpreqbody.pyo", line 996, in process
  File "cherrypy\_cpreqbody.pyo", line 540, in process
  File "cherrypy\_cpreqbody.pyo", line 223, in process_multipart_form_data
  File "cherrypy\_cpreqbody.pyo", line 213, in process_multipart
  File "cherrypy\_cpreqbody.pyo", line 599, in from_fp
  File "cherrypy\_cpreqbody.pyo", line 615, in read_headers
ValueError: MIME requires CRLF terminators: 'Content-Disposition: form-data; name="name"; filename="American.Horror.Story.S01E02.720p.WEB-DL.DD5.1.H.264-CtrlHD.nzb"\n'
Thanks

Re: Cherrypy error in V1.0.0??

Posted: March 22nd, 2016, 1:32 am
by sander
Did you see https://forums.sabnzbd.org/viewtopic.ph ... 50#p102069 ?

So:

Code: Select all

ValueError: MIME requires CRLF terminators: 'Content-Disposition: form-data; name="name"; filename="American.Horror.Story.S01E02.720p.WEB-DL.DD5.1.H.264-CtrlHD.nzb"\n'
It requires CR and LF, but there is only a LF (the '\n'). So a problem on the client side (PowerNZB)

Re: Cherrypy error in V1.0.0??

Posted: March 22nd, 2016, 2:40 am
by shypike
And the CherryPy being a bit too strict in enforcing the protocol?
Should we patch CherryPy?

Re: Cherrypy error in V1.0.0??

Posted: March 22nd, 2016, 3:11 am
by safihre
Probably for the best. It seems to know that the MIME ends, it just doesn't want to accept it :P