Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Twitter streaming request: 403 #574

Open
VoidGekido opened this issue Jul 5, 2022 · 7 comments
Open

Bad Twitter streaming request: 403 #574

VoidGekido opened this issue Jul 5, 2022 · 7 comments

Comments

@VoidGekido
Copy link

i don't really know how to switch to v2 i was hoping someone could help me with it or is there something wrong with the code?
image_2022-07-05_180616712

Error: Bad Twitter streaming request: 403
at Object.exports.makeTwitError (F:\AI-CHIBI\node_modules\twit\lib\helpers.js:74:13)
at Request. (F:\AI-CHIBI\node_modules\twit\lib\streaming-api-connection.js:96:29)
at Request.emit (node:events:532:35)
at Gunzip. (F:\AI-CHIBI\node_modules\request\request.js:1076:12)
at Object.onceWrapper (node:events:639:28)
at Gunzip.emit (node:events:520:28)
at endReadableNT (node:internal/streams/readable:1346:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on StreamingAPIConnection instance at:
at Request. (F:\AI-CHIBI\node_modules\twit\lib\streaming-api-connection.js:99:14)
at Request.emit (node:events:532:35)
[... lines matching original stack trace ...]
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
code: null,
allErrors: [],
twitterReply: '\n\n\n<title>Error 403 \n' +
'Please use V2 filtered and sample volume stream as alternatives\n' +
'</title>\n' +
'\n' +
'\n' +
'

HTTP ERROR: 403

\n' +
"

Problem accessing '/1.1/statuses/filter.json'. Reason:\n" +
'

    \n' +
'Please use V2 filtered and sample volume stream as alternatives\n' +
'
\n' +
'\n' +
'\n',
statusCode: 403
}

@mahdikhan786
Copy link

Did you found any solution ?

@AlexandruMares
Copy link

AlexandruMares commented Nov 16, 2022

Is this thing still works?

@urko-b
Copy link

urko-b commented Nov 26, 2022

I think this is happening: #571 (comment)

@anthonyattard
Copy link

Getting this error today, shame to see Twitter api being made worse.

@atnjqt
Copy link

atnjqt commented Mar 16, 2023

@anthonyattard any resolution? Funny enough, I also ran into this yesterday March 16 2023

@anthonyattard
Copy link

@anthonyattard any resolution? Funny enough, I also ran into this yesterday March 16 2023

Looks like the resolution is to hit the v2 endpoints but this library hasn't been updated for it. May have to find an alternative or fork this one. Elon finally cut us off!

@anthonyattard
Copy link

@atnjqt replace twit with the official twtitter v2 api library https://github.com/twitterdev/twitter-api-typescript-sdk Had to rework my project but am back up and running!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants