Statuses/user_timeline error when big user_id

bug
bugreporting
api

#1

Hi !

When I try to get user timeline where the user_id is “big”, then the REST API respond with this error

{“errors”:[{“code”:34,“message”:“Sorry, that page does not exist.”}]}

You can check the example here in API Console: https://dev.twitter.com/rest/tools/console

This url : https://api.twitter.com/1.1/statuses/user_timeline.json?user_id=817422316242083800&count=1

It works when I use the screen_name: https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=BushmanLove&count=1


#2

That’s the wrong user ID for that user / screen name. The correct ID is 817422316242083842.

Are you using Javascript? You should read about our snowflake IDs, and why you should always use the id_str parameter. Javascript cannot handle very large integers.


#3

Oh yes, I forgot the snowflake IDs ! Now It works great :slight_smile:

Thank you for the help.