Getting user connection limit exceed error

May 27, 2014 at 5:29 PM
I am using filtered stream to track multiple twitter user's (@mentions) tweets. When I deploy my app to production after some local testing, it errors something like "User connection limit exceeds" and then application exits.
  1. I need to know how can I close all running streams properly ?
  2. If this happens at run time, how to overcome this situation so that application does not exits ?
May 28, 2014 at 1:13 AM
You cannot start multiple FilteredStream or SampleStream at the same time with the same credentials. And if you do use multiple accounts they should in theory return the same tweets.

To stop a stream you need to do the following: