Once there is interaction, the token will drop

Support / help / discussion forum for twitter bot
Emin
Posts: 835
Joined: Mon Apr 22, 2019 6:54 am

Re: Once there is interaction, the token will drop

Post by Emin »

after verification the account does not continue the task,( it shows that ct0 cookies were not found ) , and the task needs to be set again
User avatar
martin@rootjazz
Site Admin
Posts: 36700
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Once there is interaction, the token will drop

Post by martin@rootjazz »

neo4295 wrote: Sat Feb 01, 2025 6:58 am
As I mentioned before, restarting TD solves the problem, but it will reappear over time.
Can you explain what you mean exactly the problem resolves after restart.


x.com server sends a response to drop the cookie. How does restarting fix this?
neo4295
Posts: 114
Joined: Thu May 25, 2023 12:05 am

Re: Once there is interaction, the token will drop

Post by neo4295 »

Please see the raw log I sent you via email with the title “About ct0 token removed”.
Emin
Posts: 835
Joined: Mon Apr 22, 2019 6:54 am

Re: Once there is interaction, the token will drop

Post by Emin »

you just need, during work the account itself passed verification and continue to work
neo4295
Posts: 114
Joined: Thu May 25, 2023 12:05 am

Re: Once there is interaction, the token will drop

Post by neo4295 »

neo4295 wrote: Tue Feb 04, 2025 6:42 am Please see the raw log I sent you via email with the title “About ct0 token removed”.
Martin, please check my email for the contents.
neo4295
Posts: 114
Joined: Thu May 25, 2023 12:05 am

Re: Once there is interaction, the token will drop

Post by neo4295 »

Martin please reply.
User avatar
martin@rootjazz
Site Admin
Posts: 36700
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Once there is interaction, the token will drop

Post by martin@rootjazz »

ok so what appears to happen is, twitter doesn't like the ct0 and drops the cookie (due to you not using browser mode I assume so it's old / outdated / not maintained code. The browser mode would update these values, but as you have disabled it - it doesn't.

The program is caching the cookies to maintain state, twitter cancels them so the program logs they no longer exist.

When you restart, the program is loading from disk, I guess the restart stopped the program writing to disk. When restart, it's using the old cancelled auth / ct0 and due to twitter server bugs, it didn't actually wipe the cookie on the server and it's valid... for a while until the process happens again, twitter cancels the cookie .... and so it repeats.

I'd added some little hacks to just reload from disk, but it's not a proper solution but may be a bit improved for you.


As I wrote in the email, non-browser mode will be removed at some point and I'm not spending time on non-browser functionality, it just takes my time away from working on the next iteration of the program
Emin
Posts: 835
Joined: Mon Apr 22, 2019 6:54 am

Re: Once there is interaction, the token will drop

Post by Emin »

after verification the account does not continue the task,( it shows that ct0 cookies were not found ) , and the task needs to be set again
I never turned off browser mode
neo4295
Posts: 114
Joined: Thu May 25, 2023 12:05 am

Re: Once there is interaction, the token will drop

Post by neo4295 »

Emin wrote: Fri Feb 07, 2025 7:11 pm after verification the account does not continue the task,( it shows that ct0 cookies were not found ) , and the task needs to be set again
I never turned off browser mode
Thanks for trying to improve it.

As this person wrote, I contacted Martin because I found the same problem in browser mode.
neo4295
Posts: 114
Joined: Thu May 25, 2023 12:05 am

Re: Once there is interaction, the token will drop

Post by neo4295 »

Martin, please reply to this post as well.
Post Reply