Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Splunk Python SDK failing with BadStatusLine error

$
0
0
Hi all, I'm having an issue with the Python SDK. I'm running the latest version of the SDK (1.5.0) on python 2.7.10. Whever I try to connect to my instance I get the following error: Traceback (most recent call last): File "event_types.py", line 44, in main() File "event_types.py", line 32, in main service = connect(**opts.kwargs) File "..\splunklib\client.py", line 321, in connect s.login() File "..\splunklib\binding.py", line 847, in login cookie="1") # In Splunk 6.2+, passing "cookie=1" will return the "set-cookie" header File "..\splunklib\binding.py", line 1185, in post return self.request(url, message) File "..\splunklib\binding.py", line 1202, in request response = self.handler(url, message, **kwargs) File "..\splunklib\binding.py", line 1339, in request response = connection.getresponse() File "C:\Python27\lib\httplib.py", line 1067, in getresponse response.begin() File "C:\Python27\lib\httplib.py", line 409, in begin version, status, reason = self._read_status() File "C:\Python27\lib\httplib.py", line 373, in _read_status raise BadStatusLine(line) httplib.BadStatusLine: '' I recently upgraded my Python version. Is there any reason that 2.7.10 wouldn't work with the current version of the SDK? Is there a workaround for this error? Thanks!

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>