(Streaming API) Is my server IP already in blacklist?


I think I probably get in trouble for frequently reconnecting by streaming API.
Since I remain get “Client Error (420)” when I try to reconnect (even I have wait for 30 minutes.)
Is there any way to check whether my IP has been banned or not?

BTW, how long should we wait if we close the connection and like to reconnect again?
Thanks for any help you can give me. :frowning:


420 means you’re connecting way too fast. Every 420 you see extends the amount of time you need to wait before reconnecting.

Wait a few hours for the 420 responses to clear, then back off at least 60 seconds if you see a 420 again. Follow the backoff strategy listed here if you still see HTTP 420 responses: https://dev.twitter.com/docs/streaming-apis/connecting#Reconnecting