Getting 401 error randomly



I’m using to update statuses. And I’m getting 401 error randomly especially when I try to reply to a tweet with in_reply_to_status_id parameter. I logged the api key, access token and secret to track down the culprit. Everything seems to be alright.

So, do you know if there are other things that could lead to 401 error?



What’s the code that you use to set that parameter? Just about every element of a HTTP request can contribute to a 401 error. OAuth is picky.