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

raise BadStatusLine(line) httplib.BadStatusLine: '' #2

Open
lightonphiri opened this issue Sep 25, 2012 · 0 comments
Open

raise BadStatusLine(line) httplib.BadStatusLine: '' #2

lightonphiri opened this issue Sep 25, 2012 · 0 comments

Comments

@lightonphiri
Copy link

I do not use Python frequently but it appears the problem I am experiencing might be as a result of a well known issue. I am trying to harvest some content and run into the following error. Are you able to suggest a workaround for this?

Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/common.py", line 115, in method
return obj(self, **kw)
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/common.py", line 110, in call
return bound_self.handleVerb(self._verb, kw)
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/client.py", line 65, in handleVerb
kw, self.makeRequestErrorHandling(verb=verb, **kw))
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/client.py", line 269, in makeRequestErrorHandling
xml = self.makeRequest(**kw)
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/client.py", line 316, in makeRequest
return retrieveFromUrlWaiting(request)
File "/usr/local/lib/python2.7/dist-packages/pyoai-2.4.4-py2.7.egg/oaipmh/client.py", line 343, in retrieveFromUrlWaiting
f = urllib2.urlopen(request)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 418, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1180, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1030, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 407, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 371, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''

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

1 participant