I’m trying to switch my codebase over to the 1.1 Streaming API. I’m using the Tweepy Python library to access the sample endpoint:
I am consistently getting 420 status codes after getting 3-400 tweets, after 30 seconds or so. I don’t understand why I’m getting rate-limited. I only have one instance of my app, i’m not running it very often, etc. I’ve waited a while before trying again, with the same result. What could explain this?
Edit: with some debugging, I now see that I’m getting lots of disconnect messages (code 4). However, I know that no other connections are happening, what could be causing all of the admin logouts?
Thanks for any insight.