Python httplib and BadStatusLine error


What is different about the HTTP server DataSift runs than that of twitter and foursquare for streaming purposes.

I’m using httplib in my python program (data to be ingested by Splunk), and i’m getting this:

	  File "./", line 365, in <module>
	  File "./", line 359, in main
	  File "./", line 288, in listen
	    stream = streaming_http.connect()
	  File "./", line 173, in connect
	    response = connection.getresponse()
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 1027, in getresponse
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 407, in begin
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 371, in _read_status
	httplib.BadStatusLine: ''

I don’t get these errors with foursquare or twitter directly. Now, i did see your updates to datasift’s own python client library where you’re using sockets and not httplib because of a buffer issue, but in my script, i’m setting the chunk size to be read by my buffer.

Can you help diagnose the issue?


Is this still an issue? I believe you have been working on this via email with a colleague of mine (Michael)?