Page 1 of 1
0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 5th, 2016, 5:35 am
by .maxx
Hi guys,
get this error since B1.
Do you know what it means?
I'm on OSX 10.11.2 with Python 2.7.2
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 5th, 2016, 1:54 pm
by shypike
No idea.
Have you tried the latest Beta?
Or does it happen with the latest too?
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 5th, 2016, 4:02 pm
by safihre
(see the title of the post, so Beta4 also)
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 5th, 2016, 4:08 pm
by shypike
OK, missed that.
Under which circumstances does it occur?
SABnzbd is mainly developed on OSX (recently El Capitan) and I have never seen this issue.
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 5th, 2016, 6:21 pm
by sander
FWIW: the error seems to producible from a RE in plain python, so that might be the cause in the wsgiserver2.py:
Good:
Code: Select all
>>> re.search("it", 'ditdat' )
<_sre.SRE_Match object at 0x7fbaaa8fe5e0>
Error:
Code: Select all
>>> re.search("it", ['ditdat'] )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/re.py", line 146, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or buffer
>>>
I can't match this against the cherrypy/wsgiserver/wsgiserver2.py, as read_request_line is in different lines than reported by the OP.
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 6th, 2016, 6:59 am
by shypike
I can see that line 705 isn't 100% crash-proof.
I'll investigate some more and at the least make a patch that will make the symptom go away.
Too bad that I do not have a scenario that reproduces it.
@.maxx: are there any specific circumstances under which this occurs?
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 7th, 2016, 5:07 am
by .maxx
@shypike
No I can't reproduce it. It occurs once a day.
Perhaps it is connected with the RSS feeds. I don't know.
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 9th, 2016, 11:03 am
by nicheplayer
I'm getting the same thing on 0.8.0Beta3 [0b6395f] with Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2], Debian Wheezy.
Code: Select all
ERROR 07/01/2016 12:52 [07/Jan/2016:12:52:41] ENGINE TypeError('expected string or buffer',)
Traceback (most recent call last):
File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/wsgiserver2.py", line 1358, in communicate
req.parse_request()
File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/wsgiserver2.py", line 618, in parse_request
success = self.read_request_line()
File "/usr/share/sabnzbdplus/cherrypy/wsgiserver/wsgiserver2.py", line 705, in read_request_line
atoms = [unquote(x) for x in quoted_slash.split(path)]
TypeError: expected string or buffer
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 9th, 2016, 11:27 am
by shypike
Will be fixed in the next release.
Any info about circumstances?
Re: 0.8.0 B4 ENGINE TypeError('expected string or buffer',)
Posted: January 9th, 2016, 5:07 pm
by synogy
Have the same issue occur. Noticed it happens and i lose connection to SAB. Then it comes back with that error.
Was downloading a about 11 nzbs from usenet-crawler on OSX el capitan (most recent non-beta).
Also noticed I get a "Failed to send pushbullet message" warning as well. will investigate settings for that issue though.