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

Older versions of the library works better. #120

Open
darkmasta opened this issue Nov 13, 2024 · 2 comments
Open

Older versions of the library works better. #120

darkmasta opened this issue Nov 13, 2024 · 2 comments

Comments

@darkmasta
Copy link

With the new versions of the library, I get this error a lot frequently.

Response returned an error code
    at new ResponseError (node_modules/twitter-openapi-typescript-generated/dist/runtime.js:405:28)
    at PostApi.<anonymous> (node_modules/twitter-openapi-typescript-generated/dist/runtime.js:325:31)
    at step (node_modules/twitter-openapi-typescript-generated/dist/runtime.js:72:23)
    at Object.next (node_modules/twitter-openapi-typescript-generated/dist/runtime.js:53:53)
    at fulfilled (node_modules/twitter-openapi-typescript-generated/dist/runtime.js:44:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  response: Response {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: false, error: null },
    [Symbol(Response internals)]: {
      url: 'https://x.com/i/api/graphql/8ED1SMuUGkOZVBEjiYUTfw/CreateTweet',
      status: 400,
      statusText: 'Bad Request',
      headers: [Headers],
      counter: 0
    }
  }
}

Surprisingly older versions work better. They get a lot less error. Why do you think this is happening? How do we mitigate against this error?

@fa0311
Copy link
Owner

fa0311 commented Nov 13, 2024

The new library uses a new API.
The new API has a strict anti-spam policy.
I will address this issue at some point.

If you use CreateTweet or UserByScreenName, try using an older version of the library.

@darkmasta
Copy link
Author

darkmasta commented Nov 13, 2024

I will address this issue at some point.

I am using CreateTweet and CreateRetweet exclusively and at this point even with the older version library is barely usable. We are getting a lot of errors. 😔😔

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

2 participants