-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
BadRequest: status: 400, message: "{"errors":[{"code":366,"message":"flow name LoginFlow is currently not accessible"}]}" #199
Comments
Change the user agent to something else: ie client = Client( |
Here is my solution: |
Currently seeing this error, on accounts with/without 2FA. Tried a couple different user agents, including of course the one from the browser I'm logged into the account with
Code I'm trying to run: import trio
from twikit import Client
USERNAME = 'SomeUsername'
EMAIL = '[email protected]'
PASSWORD = 'ABCXYZ'
# TOTP_SECRET = '000000'
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36'
# Initialize client
client = Client('en-US',
user_agent=USER_AGENT)
async def main():
await client.login(
auth_info_1=USERNAME,
auth_info_2=EMAIL,
password=PASSWORD,
# totp_secret=TOTP_SECRET
)
client.save_cookies('cookies.json')
notifications = await client.get_notifications('All')
for notification in notifications:
print(notification)
trio.run(main) Dependencies:
|
From the Discord community announcement channel:
So this is a known issue being worked on. |
I had the same problem last night, but I fixed the user agent and it was fine. |
up |
so what did you change your user agent to? when I change my user agent, the same problem persists |
After trying the method of using user-agent, I still got this error.
Here are the codes:
import asyncio
from twikit import Client
USERNAME = 'XXX'
EMAIL = 'XXX'
PASSWORD = XXX'
client = Client(user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) ...')
async def main():
await client.login(
auth_info_1=USERNAME,
auth_info_2=EMAIL,
password=PASSWORD
)
asyncio.run(main())
Any suggestions, thank you!
The text was updated successfully, but these errors were encountered: