ttezel / twit

Twitter API Client for node (REST & Streaming API)
4.32k stars 573 forks source link

User stream stopped working. #492

Open shahidmau opened 5 years ago

shahidmau commented 5 years ago

Hello, user stream was working fine for a long time but it suddenly stopped working for me. I am using like this.

var stream = T.stream( 'user' );
stream.on( 'tweet', function(){} ):

It gives below error

{ Error: Bad Twitter streaming request: 404 at Object.exports.makeTwitError (/Volumes/mac2/programs/nodejs/nodejs_production/node_modules/twit/lib/helpers.js:74:13) at Request. (/Volumes/mac2/programs/nodejs/nodejs_production/node_modules/twit/lib/streaming-api- connection.js:96:29)

maziyarpanahi commented 5 years ago

User stream and Site stream are discontinued in favor of activity stream. It is not possible to use those to APIs anymore as Twitter removed them. If you do a bit of search here and in out there you see they have warned users about a year ago, and finally stopped it a few months back.

Barbapapazes commented 5 years ago

hi, and have we got a solution to bypass this issue from twitter ?

maziyarpanahi commented 5 years ago

Nothing to bypass or fix here. They removed the whole APIs. Nothing anyone can do.

taytus commented 5 years ago

@maziyarpanahi do you have any examples of how to reply to mentions?

vinodsamy commented 5 years ago

@maziyarpanahi could you please mention any working example latest user streams.

andypiper commented 5 years ago

There is no such thing as user streams any more. You would need to implement code that supports the Account Activity API using webhooks. One such example app written in node is the Account Activity API dashboard from Twitter, you could take a look at how that works internally.