Skip to content

Conversation

@derjogi
Copy link

@derjogi derjogi commented Jun 9, 2025

When I start with an empty database, twitter fetches and updates tweets from my timeline. At that point I frequently run into this error:

[2025-06-09 23:02:26] ERROR: Failed to create Twitter client for 38d2cfad-0ec5-0515-9d2c-5f13759f09f8:
    message: "(TypeError) Cannot read properties of undefined (reading 'id_str')"
    stack: [
      "TypeError: Cannot read properties of undefined (reading 'id_str')",
      "at _ClientBase.parseTweet ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8044:47)",
      "at _ClientBase.parseTweet ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8033:80)",
      "at [...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8218:125",
      "at Array.map (<anonymous>)",
      "at _ClientBase.fetchHomeTimeline ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8218:105)",
      "at process.processTicksAndRejections (node:internal/process/task_queues:105:5)",
      "at async _ClientBase.populateTimeline ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8323:22)",
      "at async _ClientBase.init ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:8202:5)",
      "at async _TwitterService.createClient ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:13793:7)",
      "at async _TwitterService.start ([...]/node_modules/@elizaos/plugin-twitter/dist/index.js:13923:9)",
      "at async [...]/node_modules/@elizaos/cli/node_modules/@elizaos/core/dist/chunk-Y4TJIR4A.js:9230:33",
      "at async [...]/node_modules/@elizaos/cli/node_modules/@elizaos/core/dist/chunk-Y4TJIR4A.js:8474:9",
      "at async startAgent ([...]/node_modules/@elizaos/cli/dist/chunk-IYVGVCIB.js:89523:3)",
      "at async [...]/node_modules/@elizaos/cli/dist/chunk-IYVGVCIB.js:89682:29",
      "at async Promise.allSettled (index 6)",
      "at async startAgents ([...]/node_modules/@elizaos/cli/dist/chunk-IYVGVCIB.js:89679:25)",
      "at async _Command.<anonymous> ([...]/node_modules/@elizaos/cli/dist/chunk-IYVGVCIB.js:89821:5)",
      "at async _Command.parseAsync ([...]/node_modules/@elizaos/cli/dist/chunk-5J7S2CSH.js:1721:9)",
      "at async main ([...]/node_modules/@elizaos/cli/dist/index.js:112:3)"

This small pr fixes that issue

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

Successfully merging this pull request may close these issues.

2 participants