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

Session gets invalidated frequently last time #224

Open
msvprogs opened this issue Jun 15, 2024 · 3 comments
Open

Session gets invalidated frequently last time #224

msvprogs opened this issue Jun 15, 2024 · 3 comments

Comments

@msvprogs
Copy link

msvprogs commented Jun 15, 2024

Hello,
Does someone experience the same phenomenon?
During last weeks, I get '32 - Could not authenticate you' errors frequently on various requests (liking, DM, search). I don't do anything that could be identified as abusive behavior (DM spamming, a lot of subsequent random likes, exceeding endpoint rate limits). Could this be due to missing request headers X-Client-UUID and x-client-transaction-id ?
There's an explanation on generating the latter header: https://antibot.blog/twitter-header-part-3/
But the author claims that presence of this header doesn't affect the trustfulness of API requests. I don't know if it's still valid, that was in February 2024.
Maybe there's another reason for frequent session invalidations.

@Phineas1500
Copy link

yeah, i use the twitter.search feature, and after running my code for a couple minutes i get a 200 unauthorized error. if i keep my code running with those errors, i eventually get logged out of twitter on my browser. ive heard that after enough logouts, twitter suspends your account. i think we need a way to properly send the x-client-transaction-id header.

@runetech0
Copy link

I have been facing this issue as well since months. Has any solution been found yet?
Seems like generating the x-client-transaction-id header is a bit complex because the the code is obfuscated.
Here's the info about reverse engineering this header. antibot.blog.
Hope someone can implement it.

@Phineas1500
Copy link

I know Dimden has implemented it for Old Tweetdeck. The code is in his Github, specifically in the source here: https://tweetdeck.dimden.dev/solver.html

His repo: https://github.com/dimdenGD/OldTweetDeck

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

3 participants