CSFR issue

Support / help / discussion forum for twitter bot
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Auto adding account problem

Post by martin@rootjazz »

z8J9nYw6 wrote: Fri Jul 26, 2019 4:23 am Hello,
The same problem has happened since yesterday.
This happens for newly added accounts.

13:00:04: WARNING: Couldn't get CSFR from cookies!
Account probably blocked by twitter and requires re-verification / receive SMS code / change password - please check account manually
13:00:04: * FAILED: stats failed to scrape: 93748583947069875349764958 : Couldn't get CSFR from cookies

I have confirmed in advance that the account is not blocked.
Previously, if this happened, delete the cookie and try again, it worked fine.
But now, it doesn't work no matter how many times you delete the cookie and try again.

As above, if you have a test account I can use to analyse this. EXPORT it and email it:

Code: Select all

support[at]rootjazz[dot]com
z8J9nYw6
Posts: 42
Joined: Wed Jul 10, 2019 6:46 am

Re: Auto adding account problem

Post by z8J9nYw6 »

I do not have a test account that can be given to you.
I tried using an old account (about three years ago) but it was the same.
You can probably test by deleting the existing account's cookie.

You will probably get this message.
WARNING: Couldn't get CSFR from cookies!

I think that is probably due to the Twitter update.
Please help.
Thank you.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: Auto adding account problem

Post by martin@rootjazz »

z8J9nYw6 wrote: Sat Jul 27, 2019 8:36 am I do not have a test account that can be given to you.
Not a problem I understand. I will need to wait until I have an account that causes this.
I tried using an old account (about three years ago) but it was the same.
You can probably test by deleting the existing account's cookie.
Already attempted everything I can think of to replicate with existing accounts here I can assure you, hence asking for a test account, which is usually a last resort due to obvious reasons and concerns
z8J9nYw6
Posts: 42
Joined: Wed Jul 10, 2019 6:46 am

Re: Auto adding account problem

Post by z8J9nYw6 »

I sent a log.
ID:logs_29825

I tried with various accounts, but all are the same.
I do not think that the account is the cause.
Fahad
Posts: 193
Joined: Sat May 18, 2019 2:26 pm

Re: Auto adding account problem

Post by Fahad »

Hi,

So I get back and try different test.

1- I added some new accounts which has been made automatically from local DSL connection with clean IP
  • TD verify login and say everything is good
  • I try to update account but TD say it failed
  • I log into account manually and after trying to tweet it give me a challenge
  • After doing recaptcha for 3 times consistently Twitter ask me for phone verification by sending the code.. but I don't have the phone number
  • I did the same thing with couple of account's like this with restarting my router every time and all give the same result
So..

I tried another account's type

2- I added new account - Aged account and restart my router.
  • TD verify login and say everything is good
  • I try to update the account but TD sat it failed and mark my account is failed last login
  • I log into the account manually and clear the cookies from twitter page through chrome and redo login manually and try to tweet.. and it worked
  • I verify login to my account and it say fail
  • I do verify login without cookies and it worked without any fail sign
  • I redo the update account but TD say it fail and mark my account as failed again
  • I log into the account manually ((all login into the account manually is through TD)) and clear the cookies from twitter page through chrome and redo login manually and try to tweet in trend hash_tag and to follow and do retweet.. it all work great
  • II verify my account again without cookies and it worked without any fail sign
  • I try to tweet though TD tweet tab.. and it fails and say "Couldn't get CSFR from cookies" and TD marks my account as failed last login
  • I go again to log in manually through TD and clear the cookies from twitter page through chrome and redo login manually
  • I tweet with 4 pics and in trend hash_tags and everything look good.. I even see the tweet appear in this trend hash_tag so no shadow banning from Twitter
Log_id: logs_71709

I think if I go back to older version it will work great for older accounts.. but the new one will not work.

ِAfter returning to version 3.0.1.864 and restore database..etc.. I tried to update the Aged account but I got the same error "Couldn't get CSFR from cookies"
Fahad
Posts: 193
Joined: Sat May 18, 2019 2:26 pm

Re: Auto adding account problem

Post by Fahad »

Also.. after TD mark the account as fail to login.. something weird happens.

If I click on use cookie and force to login.. and then verify login to the account.. this is the output:

Code: Select all

Starting: 29/07/2019 00:30 AM
Validate account  via login @@ @@ @@
Login: @@ : @@ No Proxy 
UA: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Login: get: https://twitter.com/
Login: Get: https://twitter.com/login?redirect_after_login=https%3A/twitter.com/
Login: Post: https://twitter.com/sessions 
* WARNING: Twitter reports username / password is incorrect. @@ @@
Please double check the details and confirm you can log into the website with these details


Validate account failed: @@ 
FAILED VERIFY: 

SUCCESS VERIFY: 

0 accounts validated out of 1
Started: 29/07/2019 00:30 AM
Finished: 29/07/2019 00:30 AM
ID: fd4430bd-a9e3-495e-ab43-88f5401a9afa
Action ran for: 0hr:0min:6s
But if I unclick use cookie.. this is the output:

Code: Select all

Starting: 29/07/2019 00:30 AM
Validate account  via login @@ @@ @@
Login: @@ : @@ No Proxy 
UA: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Login: get: https://twitter.com/
Login: Get: https://twitter.com/login?redirect_after_login=https%3A/twitter.com/
Login: Post: https://twitter.com/sessions 
Login: Success validate:
Scraping Daily stats for: @@
UserDetails: https://mobile.twitter.com/@@ with: @@  No Proxy 
Scrape from users: 1
Scrape details from: 1 inputs
WARNING: Couldn't get CSFR from cookies!
Account probably blocked by twitter and requires re-verification / receive SMS code / change password - please check account manually
* SUCCESS: @@ @@ validated successfully
FAILED VERIFY: 

SUCCESS VERIFY: 
https://mobile.twitter.com/@@ 
1 accounts validated out of 1
Started: 29/07/2019 00:30 AM
Finished: 29/07/2019 00:30 AM
ID: 22003339-f634-42d3-bf77-9b0cf0b920b4
Action ran for: 0hr:0min:8s

So.. the account work.. it can tweet and retweet and follow and upload pics.. etc .. but TD fail to match manual work.. Why? I'm sure Martin will figure it out and solve it.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: CSFR issue

Post by martin@rootjazz »

As before, if anyone has some accounts I can use for testing it would be appreciated.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: CSFR issue

Post by martin@rootjazz »

incorrect username / password error message issue found and fixed. Can be ignored.
User avatar
martin@rootjazz
Site Admin
Posts: 34375
Joined: Fri Jan 25, 2013 10:06 pm
Location: The Funk
Contact:

Re: CSFR issue

Post by martin@rootjazz »

I think this may fix the issue of CSFR

https://rootjazz.com/twitterdub/updatetesting.html
vm1
Posts: 5
Joined: Mon Jul 29, 2019 5:07 am

Re: CSFR issue

Post by vm1 »

I downloaded the latest version and am no longer getting the CSFR issue but when I tried to set up a follow process I'm getting this error now:

ERROR: scrape users from ID :Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[LibTwitterJsonData.JsonUser]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'errors', line 1, position 10.
No users found for: https://mobile.twitter.com/
Post Reply