TweepError: Expecting length, unexpected value found #892
Labels
Bug
This is regarding a bug with the library
No Reproduction
This is not reproducible
Stale
This is inactive, outdated, too old, or no longer applicable
Milestone
Hello everyone, I am streaming tweets with Tweepy version 3.6 in a 2.7 Python version on w10.
What it seems weird to me is that after a minimum number of tweets fetched, tweepy raises this error:
Traceback (most recent call last):
File "escuchar_tweets.py", line 67, in
twitterStream.filter(track=keywords)
File "C:\Anaconda2\lib\site-packages\tweepy\streaming.py", line 450, in filter
self._start(async)
File "C:\Anaconda2\lib\site-packages\tweepy\streaming.py", line 364, in _start
self._run()
File "C:\Anaconda2\lib\site-packages\tweepy\streaming.py", line 297, in _run
six.reraise(*exc_info)
File "C:\Anaconda2\lib\site-packages\tweepy\streaming.py", line 266, in _run
self._read_loop(resp)
File "C:\Anaconda2\lib\site-packages\tweepy\streaming.py", line 323, in _read_loop
raise TweepError('Expecting length, unexpected value found')
tweepy.error.TweepError: Expecting length, unexpected value found
My code is the following:
class listener(StreamListener):
I found on Stackoverflow these two questions, but unluckily no one seems to know the answer.
Here the question1 and question 2
Any help is really welcome,
thanks for reading!
The text was updated successfully, but these errors were encountered: