Skip to content

[error] failed to update token at flow_duplication_check #245

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

Open
Abolfazl opened this issue Mar 25, 2025 · 4 comments
Open

[error] failed to update token at flow_duplication_check #245

Abolfazl opened this issue Mar 25, 2025 · 4 comments

Comments

@Abolfazl
Copy link

Abolfazl commented Mar 25, 2025

I have been having an issue for the last day logging in to Twitter.

My code is:

search = Search(EMAIL, USERNAME, PASSWORD, save=True, debug=1)

and this returns:

[error] failed to update token at flow_duplication_check

The json data being passed to flow_duplication_check is

{'json': {'flow_token': 'g;XXXXXXXXX:-YYYYYYYYYYY:ZZZZZZZZZZ:3', 'subtask_inputs': [{'subtask_id': 'AccountDuplicationCheck', 'check_logged_in_account': {'link': 'AccountDuplicationCheck_false'}}]}}

which returns:

{'errors': [{'code': 366, 'message': 'flow name LoginFlow is currently not accessible g;XXXXXXXXX:-YYYYYYYYYYY:ZZZZZZZZZZ:3'}]}

Changing for fn in [flow_start, flow_instrumentation, flow_username, flow_password, flow_duplication_check]: to for fn in [flow_start, flow_instrumentation, flow_username, flow_password] fixes the issue but I wanted to see what the underlying issue for this is.

Edit: Nevermind, this fix worked one time but now it returns 404 when trying to poll https://twitter.com/i/api/graphql/nK1dw4oV3k4w5TdtcAdSww/SearchTimeline

@SakiSakiSakiSakiSaki
Copy link

The link you provided leads to a 403, have you found a permanent fix for this?

@Abolfazl
Copy link
Author

My fix was to just login with cookies instead of explicit credentials

@SakiSakiSakiSakiSaki
Copy link

I tried the same thing but I'm unable to use scraper.users_by_ids() for my own user ID.

I keep getting that three checklist print statement telling me to make sure my acc isn't locked and resupply with new cookies.

@17635567608
Copy link

Changing for fn in [flow_start, flow_instrumentation, flow_username, flow_password, flow_duplication_check]: to for fn in [flow_start, flow_instrumentation, flow_username, flow_password] fixes the issue but I wanted to see what the underlying issue for this is.


This has been tried before, and you can get it by polling several times, but it has been changed now. You may only get it once after polling dozens of times. How can we communicate? Add a contact method!

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

4 participants
@Abolfazl @SakiSakiSakiSakiSaki @17635567608 and others