Python httplib and BadStatusLine error


#1

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 "./httpstream.py", line 365, in <module>
	    main()
	  File "./httpstream.py", line 359, in main
	    http_stream_options['path'],kwargs['use_https'],kwargs['terminator'],kwargs['chunk_size'])
	  File "./httpstream.py", line 288, in listen
	    stream = streaming_http.connect()
	  File "./httpstream.py", line 173, in connect
	    response = connection.getresponse()
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1027, in getresponse
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 407, in begin
	  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", 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?


#2

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