twit icon indicating copy to clipboard operation
twit copied to clipboard

Error: Bad Twitter streaming request: 404

Open slendidev opened this issue 5 years ago • 8 comments

Hello, when I try to use the stream.on 'follow' it returns a 404, why is that?

var Twit = require('twit')

var config = require('./config')
var T = new Twit(config)
var stream = T.stream('user')

stream.on('follow', function (event) {})

slendidev avatar Apr 11 '19 13:04 slendidev

Same here; it seems something is wrong with var stream =T.stream('user') + stream.on(' ', function () ).

walter-grace avatar May 05 '19 23:05 walter-grace

You guys really need to start reading either Twitter announcements or the other issues before posting new ones! There is no User stream anymore! Twitter has removed it entirely. We talked about this here a lot!

maziyarpanahi avatar May 06 '19 06:05 maziyarpanahi

hi do you know the solution for this? do you know if there is an alternate way?

ryanfarber avatar Jul 14 '19 00:07 ryanfarber

https://twittercommunity.com/t/details-and-what-to-expect-from-the-api-deprecations-this-week-on-august-16-2018/110746

fsyhrnl avatar Aug 03 '19 15:08 fsyhrnl

Hey. Twitter removed the user endpoint. Can you explain the other streaming endpoints?

sahithyandev avatar Nov 17 '19 10:11 sahithyandev

If you are using the twitter api with a twitter account, this should help:

Replace:

var stream = T.stream('user');

With

var stream = T.stream('statuses/filter', { track: '@<your_twitter_username>' });

AsaoluElijah avatar Jan 09 '20 15:01 AsaoluElijah

@``

GabrielSantosM avatar Mar 06 '20 03:03 GabrielSantosM

Ok problem solved, Elon musk messed up the twitter api to respond with 403's everywere, if you dont like this new scheme hes introduced please reply to this comment as i want this to be changed.

MaragiDev avatar Sep 30 '23 22:09 MaragiDev