Skip to content

Bot throws an error #8

Description

@APratham

I am getting an error when I am running the bot, can you please help in debugging it? I haven't shared the tweet, but I can provide some context. It is a tweet that has already been RT

events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: Bad Twitter streaming request: 404
    at Object.exports.makeTwitError (F:\twitterbot-nodejs\node_modules\twit\lib\helpers.js:74:13)
    at Request.<anonymous> (F:\twitterbot-nodejs\node_modules\twit\lib\streaming-api-connection.js:96:29)
    at Request.emit (events.js:327:22)
    at IncomingMessage.<anonymous> (F:\twitterbot-nodejs\node_modules\request\request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on StreamingAPIConnection instance at:
    at Request.<anonymous> (F:\twitterbot-nodejs\node_modules\twit\lib\streaming-api-connection.js:99:14)
    at Request.emit (events.js:327:22)
    [... lines matching original stack trace ...]
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  code: null,
  allErrors: [],
  twitterReply: '',
  statusCode: 404
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions