api.user_timeline stopped working for me

159 views
Skip to first unread message

enrico...@gmail.com

unread,
Oct 20, 2013, 8:32:48 AM10/20/13
to twe...@googlegroups.com
Hi,
I'm using tweepy 2.1 installed through pip, and until 3 days ago everything has been working quite well.
Then something broke and whenever I try to call api.user_timeline (I have 3 different tokens and
I'm not being rate_limited) I get an error complaining about max_id.

So I've simplified my code in order to understand the problem, until I got back to the base case:

                for status in tweepy.Cursor(self.api.user_timeline).items():
                  print status

No matter what I try and which parameters (id, user_id, screen_name) I pass to the function, the 
execution always stops at the first iteration of the Cursor with the following exception:

Traceback (most recent call last):
    File "/Users/.../twitter_data.py", line 252, in get_timeline
        for status in tweepy.Cursor(self.api.user_timeline).items():
    File "/Users/.../anaconda/lib/python2.7/site-packages/tweepy/cursor.py", line 152, in next
        self.current_page = self.page_iterator.next()
    File "/Users/.../anaconda/lib/python2.7/site-packages/tweepy/cursor.py", line 100, in next
        self.max_id = data.max_id
AttributeError: 'list' object has no attribute 'max_id'

I'm really running out of ideas, can you please help me or give me a direction?
Just to be sure I downloaded also the git version and run the test suites with my
tokens: every cursor based test, fails:

======================================================================
FAIL: testcursorcursoritems (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/.../tweepy/tests/test_cursors.py", line 22, in testcursorcursoritems
    self.assertEqual(len(items), 10)
AssertionError: 0 != 10

======================================================================
FAIL: testcursorcursorpages (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/.../tweepy/tests/test_cursors.py", line 29, in testcursorcursorpages
    self.assert_(len(pages) == 1)
AssertionError: False is not true

======================================================================
FAIL: testidcursoritems (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/.../tweepy/tests/test_cursors.py", line 14, in testidcursoritems
    self.assertEqual(len(items), 25)
AssertionError: 14 != 25

======================================================================
FAIL: testidcursorpages (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/.../tweepy/tests/test_cursors.py", line 18, in testidcursorpages
    self.assertEqual(len(pages), 5)
AssertionError: 1 != 5

Same type of errors on every token and all of them have full rights enabled.

Any help would be very appreciated.
Thank you.

Enrico

unread,
Oct 26, 2013, 7:10:17 AM10/26/13
to twe...@googlegroups.com
After days of tests I'm still unable to figure out what's wrong all of a sudden.
Anybody has an idea or suggestion?

Thank you.

qzy.w...@gmail.com

unread,
Jan 23, 2014, 9:58:56 AM1/23/14
to twe...@googlegroups.com
Check the status of the API service.

User timeline is down.

https://dev.twitter.com/status
Reply all
Reply to author
Forward
0 new messages