draftbit / twitter-lite

A tiny, full-featured, flexible client / server library for the Twitter API
https://npm.im/twitter-lite
MIT License
794 stars 95 forks source link

Twitter randomly responds 215 error #70

Open onhernandes opened 4 years ago

onhernandes commented 4 years ago

I'm using twitter-lite on a Twitter bot account through an API.

It starts working nicely, but after some time, Twitter starts responding 215 error on statuses/update, and after reloading the application it works for a while, then starts responding 215 again.

{"errors":[{"code":215,"message":"Bad Authentication data."}]}

dylanirlbeck commented 4 years ago

Hi @onhernandes. Sorry to hear you're experiencing this issue, and it's quite odd that you only get that error after some time, since your authentication credentials should not change randomly.

Can you do me a favor and post a minimal code snippet that I can use to try and reproduce the issue you're having?

Finally, if you haven't already check out the integration test here where we test against the statuses/update method. Unless that test is now failing (which I can look into), that code might give you some insight.

onhernandes commented 4 years ago

The code is here: https://github.com/onhernandes/lave-as-maos/blob/master/tweet.js