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

httplib.BadStatusLine: ' ' #95

Closed
vipulob opened this issue May 5, 2016 · 4 comments
Closed

httplib.BadStatusLine: ' ' #95

vipulob opened this issue May 5, 2016 · 4 comments

Comments

@vipulob
Copy link

vipulob commented May 5, 2016

output = winrm_obj.run_cmd(cmd)
File "/usr/lib/python2.7/site-packages/winrm/init.py", line 33, in run_cmd
self.protocol.close_shell(shell_id)
File "/usr/lib/python2.7/site-packages/winrm/winrm/protocol.py", line 211, in close_shell
rs = self.send_message(xmltodict.unparse(rq))
File "/usr/lib/python2.7/site-packages/winrm/winrm/protocol.py", line 190, in send_message
return self.transport.send_message(message)
File "/usr/lib/python2.7/site-packages/winrm/transport.py", line 108, in send_message
response = self.opener.open(request, timeout=self.timeout)
File "/usr/lib/python2.7/urllib2.py", line 404, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 422, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1187, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1045, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 409, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 373, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ' '

I am getting this error sometimes.

@diyan
Copy link
Owner

diyan commented May 5, 2016

@vipulob Please try version from master branch using command below:

$ pip install https://github.com/diyan/pywinrm/archive/master.zip

/cc @nitzmahone

@vipulob
Copy link
Author

vipulob commented May 6, 2016

I did use master branch.
One thing i observed was if i use http proxy , i am getting the above error.
If i don't use then error doesn't come.

@nitzmahone
Copy link
Collaborator

@vipulob : That can't be current master, as the traceback references urllib2 (which has been nuked from current master for requests)... Please try with current master. Thanks!

@nitzmahone
Copy link
Collaborator

Closing for inactivity

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

3 participants