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

Twitter Reply : 'Please use V2 filtered and sample volume stream as alternatives' #582

Open
EverLab opened this issue Jan 23, 2023 · 2 comments

Comments

@EverLab
Copy link

EverLab commented Jan 23, 2023

This error come with my script today :

Error: Bad Twitter streaming request: 403 at Object.exports.makeTwitError (/root/JavaScript/node_modules/twit/lib/helpers.js:74:13) at Request.<anonymous> (/root/JavaScript/node_modules/twit/lib/streaming-api-connection.js:96:29) at Request.emit (node:events:532:35) at Gunzip.<anonymous> (/root/JavaScript/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:1343:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) Emitted 'error' event on StreamingAPIConnection instance at: at Request.<anonymous> (/root/JavaScript/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: '<html>\\n<head>\\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>\\n<title>Error 403 \n' + 'Please use V2 filtered and sample volume stream as alternatives\n' + '</title>\n' + '</head>\n' + '<body>\n' + '<h2>HTTP ERROR: 403</h2>\n' + "<p>Problem accessing '/1.1/statuses/filter.json'. Reason:\n" + '<pre> \n' + 'Please use V2 filtered and sample volume stream as alternatives\n' + '</pre>\n' + '</body>\n' + '</html>\n', statusCode: 403 }

Did they change something in API TWITTER ? Because my code doesn't change since last good execution

@slimjimrim
Copy link

bump

@jerrychong25
Copy link

Please use V2 filtered and sample volume stream as alternatives

This is the root cause.

Do you found any solution for migrating to V2 Filtered Stream API?

Thank you!

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

3 participants