Skip to content

Twitter: Authorization: Status is a duplicate. #4086

@jmikedupont2

Description

@jmikedupont2

It appears that eliza is producing duplicate tweets and getting bounced but the error message is confusing
and it should not produce duplicates.

[2025-03-26 19:28:25] ERROR: Error sending tweet; Bad response:
    errors: [
      {
        "message": "Authorization: Status is a duplicate. (187)",
        "locations": [
          {
            "line": 18,
            "column": 3
          }
        ],
        "path": [
          "create_tweet"
        ],
        "extensions": {
          "name": "AuthorizationError",
          "source": "Client",
          "code": 187,
          "kind": "Permissions",
          "tracing": {
            "trace_id": "70abb4ef4d29f118"
          }
        },
        "code": 187,
        "kind": "Permissions",
        "name": "AuthorizationError",
        "source": "Client",
        "tracing": {
          "trace_id": "70abb4ef4d29f118"
        }
      }
    ]
    data: {}
[2025-03-26 19:28:25] ERROR: Error posting tweet:
    message: "(TypeError) Cannot read properties of null (reading 'rest_id')"
    stack: [
      "TypeError: Cannot read properties of null (reading 'rest_id')",
      "at callback (file:///mnt/data1/nix/time/2025/03/14/cloud-deployment-eliza/packages/plugin-twitter/dist/index.js:8646:34)",
      "at process.processTicksAndRejections (node:internal/process/task_queues:95:5)",
      "at async postGeneratedHandler (file:///mnt/data1/nix/time/2025/03/14/cloud-deployment-eliza/packages/cli/dist/chunk-RSA7S755.js:26649:5)",
      "at async events (file:///mnt/data1/nix/time/2025/03/14/cloud-deployment-eliza/packages/cli/dist/chunk-RSA7S755.js:26781:7)",
      "at async Promise.all (index 0)",
      "at async AgentRuntime.emitEvent (file:///mnt/data1/nix/time/2025/03/14/cloud-deployment-eliza/packages/cli/dist/chunk-RSA7S755.js:27963:9)"
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions