Connection broken: IncompleteRead
See original GitHub issueThis happened and wasn’t handled properly. Expected behaviour - reconnection
Traceback (most recent call last):¡ãç°¡å
File "./feeder.py", line 78, in <module>
stream.filter(**filterargs)
File "build/bdist.linux-x86_64/egg/tweepy/streaming.py", line 430, in filter
File "build/bdist.linux-x86_64/egg/tweepy/streaming.py", line 346, in _start
File "build/bdist.linux-x86_64/egg/tweepy/streaming.py", line 286, in _run
requests.packages.urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read, 512 more expected)', IncompleteRead(0 bytes read, 512 more expected))
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:23 (1 by maintainers)
Top Results From Across the Web
Python requests throws Connection Broken - Stack Overflow
Python requests throws Connection Broken: ChunkedEncodingError with http.client.IncompleteRead when trying to download a file.
Read more >CSV file: Getting 'Connection broken: IncompleteRead' Error
The error means that the connection was broken while Python was reading data. It could be a timing issue (your code takes too...
Read more >Filtered stream request breaks in 5 min intervals - Twitter API v2
While connection on nodejs breaks silently, Python throws the following error: ... ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', ...
Read more >Connection broken: IncompleteRead(0 bytes read)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)'. 编程语言. Traceback (most recent call last): File "/Library/ ...
Read more >Twitter Streaming API - urllib3.exceptions.ProtocolError
ProtocolError: (' Connection broken : IncompleteRead ... [Incompleteread-error-when-retrieving-twitter-data-using-python]: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
On simple method to handle/suppress the exception is to override the on_exception() function in tweepy streaming listener class.
i don’t think adding in on_data works… just overriding on_exception() as i have done for example is simple and works perfectly.