-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming.py crash Incomplete Read #242
Comments
@pchai: Are you still having this problem with the latest version of Tweepy? |
As of version 2.2, I am still receiving this error intermittently. |
@magsol: Can you try with 2.3, and also the latest checkout from the repository? |
I've been running the streaming API from 2.3 for the past 48 hours with no problems. Most crashes usually happen in that time, but occasionally they take longer to manifest. I'll report back here if it happens and then try the latest checkout from the repository, but so far so good. |
Figures I spoke too soon: just crashed again with the same
Will use the latest version from the repository and report back. |
I'm seeing this with 2.3 as well. It's very intermittent here, but it's occuring about every three days or so,. |
I'm getting this pretty quick, takes only 2 minutes for it to appear. |
Any updates on this issue guys? I am still facing this. |
I'm not really sure what's causing this, unfortunately. If I had to guess, it's a network error on your end, or possibly with some Twitter server. |
I had a thought the other day: could this possibly be caused by re-implementing |
@magsol: The default |
Ah ok. It was just a theory; I haven't looked closely enough at the code, On Sat, Jun 7, 2014 at 7:05 PM, Aaron1011 notifications@github.com wrote:
|
It happens a lot (120 times in 2 hours yesterday during a world cup match) when I receive many limit messages. I'm using v2.3.0. |
Any other updates? This started happening to me today too. Using v2.3.0. |
Ok, I noticed this happens when the CPU reaches 100% (200 tweets per second seems to achieve it on ec2 micro instances). I haven't seen the problem running it at the same rate on c3.large instances. |
I've been using tweepy streaming to collect tweets for nearly one month, and this is the second time I received this error. Does anyone know why I am getting this error? Actually, I saw this issue before(streaming.py crash), but it's closed. I am wandering why do I still get this error?
Thank you for your help!
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "twitterstreamtomongodb.py", line 255, in run
self.stream.filter(track=[self.searchterm])
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 229, in filter
self._start(async)
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 172, in _start
self._run()
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 117, in _run
self._read_loop(resp)
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 165, in _read_loop
self.on_closed(resp)
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 177, in on_closed
self._start(async)
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 172, in _start
self._run()
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 117, in _run
self._read_loop(resp)
File "/Library/Python/2.7/site-packages/tweepy/streaming.py", line 150, in _read_loop
c = resp.read(1)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 541, in read
return self._read_chunked(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 586, in _read_chunked
raise IncompleteRead(''.join(value))
IncompleteRead: IncompleteRead(0 bytes read)
The text was updated successfully, but these errors were encountered: