Receiving 401: Invalid / expired Token on user_timeline


The users of my app authenticate with OAuth and everything seems to work fine for a few requests to the API but after some number of them it starts to respond with:

Twitter::Unauthorized: GET 401: Invalid / expired Token

It’s certainly not hammering the API and since some number of the requests complete successfully, I’m at a loss as to why this is occurring. I’m using the Twitter gem.


i have the same trouble…


I’ve the same problem too. I think that the OAuth expire the token after a time.


me too, expired (for every) after 1 post status, any clue?


How come none of this questions are answered? I’ve read a lot, with no answers… I have the same problem and can’t find the proper documentation link…