I’m seeing frequent and random disconnects while connected to the Twitter API v2 stream. I’m using the node-twitter-api-v2 library (GitHub - PLhery/node-twitter-api-v2: Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.). Seems like based on a quick search I’m not the first person to run into this issue.

Could this be related to the cloud service I’m using? (render_com)

We’re trying to build an app that responds when our username is mentioned so having random downtime with the stream waiting to reconnect is not ideal for our use case.

Would appreciate any insight anyone has – thanks!


Would like to add that seeing the same issue here. Started about 2 weeks ago and then reconnect can take up to 20 seconds or 10 minutes. Just talked to another developer and they said same issue there. Anyone else having this issue? We have had this streaming service running for years without any issue until recently.
THanks