-
-
Notifications
You must be signed in to change notification settings - Fork 176
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
Issue: Unable to Login to X.com API Using twikit Client - LoginFlow Not Accessible (Error 400) #227
Comments
|
Thanks for the suggestion! The issue I'm facing occurs during the login process itself. When I try to log in using credentials, I receive the following error: Since the login isn't successful, the Do you have any suggestions on how to handle this or bypass the login issue? |
did you solve the issue? @aqbspl |
Not yet, @mohanad-hafez I am getting the same error |
Same issue here |
was anyone able to solve this? or did you find other alternatives? |
I'm trying it today, and I have the same issue.. any idea? |
use this repo: worked for me, just install with: theres a pull request to merge this into the main branch |
This solution produces the following exception for me on
|
I installed with: pip3 install --upgrade git+https://github.com/mdmrcglu/twikit.git but same error occurs.
|
Is there no solution to this problem? |
I use this and i got no error but I got wrong password. I Have confidence my password is correct.
I try to catch the error :
the result is same as the config.ini file i used but it said wrong password |
hey @dvilelaf did you solve that problem ? |
same here, anyone resolved it ? |
Not really, both repos show issues for me, but not always. Sometimes it just works. For now, i'm logging via cookies. Looking forward for the fix PRs to be merged. |
How do you log via cookies? Is there a tutorial somewhere which I missed? @dvilelaf |
You will need to extract the cookies from your browser |
Oh, okay. Haven't thought about that solution yet. Thanks! |
I am trying to authenticate to X.com (formerly Twitter) using the twikit Python client. While attempting to log in using my credentials or cookies, I consistently encounter the following error:
status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"
Steps to Reproduce
Load or attempt to log in with credentials or cookies.
Run the script using twikit's Client.login() function.
Example Code Snippet
Error Message
status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}"
Additional Information
Environment: Ubuntu 22 LTS, Python 3.10
Library version: twikit vX.X.X (latest version)
X.com API Access: Standard user account (no developer API access)
Tried solutions:
Using valid credentials
Expected Behavior
Successful login and subsequent authentication using either credentials or cookies.
Actual Behavior
The login process fails with a 400 error, and the LoginFlow is reported as "not accessible".
Request for Help
The text was updated successfully, but these errors were encountered: