I have been working on a Twitter Stream in Python and it has been working well up to this point but for some reason I keep getting the error saying that the stream is at the maximum allowed connection limit when there are no other connections active. What is especially concerning, is that the tweet counter on the developer portal dashboard keeps increasing which means if I don’t fix this problem, I’ll run out of my allotment soon. I’ve tried manually disconnecting the stream, I’ve tried regenerating all of my api keys and access tokens, I’ve tried revoking and then regenerating the bearer_token but nothing seems to work. Any help on this matter would be greatly appreciated.
1 Like
What code / library are you using and where are you running this code - server? laptop? docker? etc?
Having exactly the same issue as yours, including the part that the tweet counter keeps increasing.
I haven’t found a clear solution, but these are the things I discovered while struggling with it. (I am using Tweepy library on my laptop, by the way.)
- Sometimes the stream client starts to work properly after reconnecting itself for about 15~30 minutes.
- It occurs more frequently with poor internet connection.
- It occurs more frequently when the stream client is called more often (even if those stream clients were terminated properly each time). But it also just occurs in the middle of a long streaming, like occurring after 4 hours of proper streaming.
- The tweet counter stops when the computer is shut down.
- After rebooting the computer, the stream client works fine for a while, until it encounters the same error.
Your experience could be different from mine. It would be great if you share some additional detailed information. Also, please share if you’ve gone any further dealing with this issue.