Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to parse NoneType on a noPage response? #4

Open
mnot opened this issue May 7, 2010 · 2 comments
Open

Trying to parse NoneType on a noPage response? #4

mnot opened this issue May 7, 2010 · 2 comments

Comments

@mnot
Copy link

mnot commented May 7, 2010

I'm getting this sometimes:

Unhandled error in Deferred:
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/twisted/web/client.py", line 143, in handleResponse
self.status, self.message, response)))
File "/usr/lib64/python2.6/site-packages/twisted/web/client.py", line 309, in noPage
self.deferred.errback(reason)
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 269, in errback
self._startRunCallbacks(fail)
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
self._runCallbacks()
--- ---
File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
self.result = callback(self.result, _args, *_kw)
File "/usr/lib/python2.6/site-packages/twittytwister/twitter.py", line 306, in
hdef.addCallback(lambda p: deferred.callback(parser(p)))
File "/usr/lib/python2.6/site-packages/twittytwister/txml.py", line 353, in parseUpdateResponse
return parseXML(xml).getElementsByTagName("id")[0].firstChild().data
File "/usr/lib/python2.6/site-packages/twittytwister/txml.py", line 350, in parseXML
return microdom.parseXMLString(xml)
File "/usr/lib64/python2.6/site-packages/twisted/web/microdom.py", line 888, in parseXMLString
return parseString(st, caseInsensitive=0, preserveCase=1)
File "/usr/lib64/python2.6/site-packages/twisted/web/microdom.py", line 878, in parseString
return parse(StringIO(st), _args, *_kw)
exceptions.TypeError: expected read buffer, NoneType found

@akrherz
Copy link

akrherz commented Mar 9, 2012

Hi mnot, I am seeing this too. Did you resolve it?

@mnot
Copy link
Author

mnot commented Mar 9, 2012

Nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants