ttezel / twit

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

Bad Twitter streaming request: 401 #573

Closed VoidGekido closed 2 years ago

VoidGekido commented 2 years ago

using a .env file to set the strings, tried to regenerate tokens already. Error: Bad Twitter streaming request: 401 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\nError 401 Unauthorized\n' + '\n' + '\n' + '

HTTP ERROR: 401

\n' + "

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

    Unauthorized
\n' + '\n' + '\n', statusCode: 401 }