twit
twit copied to clipboard
Error: Bad Twitter streaming request: 404
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) {})
Same here; it seems something is wrong with var stream =T.stream('user') + stream.on(' ', function () ).
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!
hi do you know the solution for this? do you know if there is an alternate way?
https://twittercommunity.com/t/details-and-what-to-expect-from-the-api-deprecations-this-week-on-august-16-2018/110746
Hey. Twitter removed the user endpoint. Can you explain the other streaming endpoints?
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>' });
@``
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.