connected : 143 break /usr/lib/python3/dist-packages/requests/models.py in iter_lines (self, chunk_size, decode_unicode, delimiter) 700 pending = None 701 -> 702 for chunk in self. _request (url, 'POST', params =params ) 67 68 def sample (self, **params ) : /usr/lib/python3/dist-packages/twython/streaming/api.py in _request (self, url, method, params) 139 response = _send (retry_counter ) 140 -> 141 for line in response. filter (track = 'hillary, trump' ) 3 #'#python, #java, #javascript, #haskell, #clojure' /usr/lib/python3/dist-packages/twython/streaming/types.py in filter (self, **params) 64 url = '' \ 65 % self. in () 1 stream = MyStreamer (APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET ) -> 2 stream. > 244 raise ProtocolError ( 'Connection broken: %r' % e, e ) 245 ProtocolError: ('Connection broken: IncompleteRead(0 bytes read, 1 more expected)', IncompleteRead(0 bytes read, 1 more expected))ĬhunkedEncodingError Traceback (most recent call last) throw (type, value, traceback ) 78 raise RuntimeError ( "generator didn't stop after throw()" ) /usr/lib/python3/dist-packages/urllib3/response.py in _error_catcher (self) 243 # This includes IncompleteRead. close ( ) /usr/lib/python3.5/contextlib.py in _exit_ (self, type, value, traceback) 76 try : -> 77 self. usr/lib/python3/dist-packages/urllib3/response.py in read_chunked (self, amt, decode_content) 513 if self. read_chunked (amt, decode_content =decode_content ) : 341 yield line usr/lib/python3/dist-packages/urllib3/response.py in stream (self, amt, decode_content) 339 if self. stream (chunk_size, decode_content = True ) : 661 yield chunk usr/lib/python3/dist-packages/requests/models.py in generate () 659 try : -> 660 for chunk in self. ProtocolError Traceback (most recent call last) append (chunk ) IncompleteRead: IncompleteRead(0 bytes read, 1 more expected)ĭuring handling of the above exception, another exception occurred: usr/lib/python3.5/http/client.py in _safe_read (self, amt) 608 if not chunk : -> 609 raise IncompleteRead ( b''. usr/lib/python3/dist-packages/urllib3/response.py in _handle_chunk (self, amt) 448 elif amt 449 value = self. _handle_chunk (amt ) 490 decoded = self._decode(chunk, decode_content=decode_content, usr/lib/python3/dist-packages/urllib3/response.py in _error_catcher (self) 225 try : -> 226 yield 227 /usr/lib/python3/dist-packages/urllib3/response.py in read_chunked (self, amt, decode_content) 488 break -> 489 chunk = self. IncompleteRead Traceback (most recent call last)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |