-
Notifications
You must be signed in to change notification settings - Fork 484
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
login is broken #530
Comments
@noahfields don’t click the link, he’s not affiliated with robin_stocks |
Solution: The login method in robinhood/authentication.py needs the mfa_code argument supplied the first time the function is called (when no valid pickle session is available). This was previously not the case: the method would prompt the user for a console mfa code if required. I'll try to take a look at some other time to see if I can supply a fix, but for now, add login(mfa_code=****) to your login() calls. If you have a valid pickle session file available, the mfa_code does not need to be provided to the robin_stocks.robinhood.login method. |
As mentioned by @mitch-zink please avoid @Brett090. He is probably fishing for login credentials or something. |
Solved I am actually still getting this error despite using the mfa_code. I did some debugging and found out that robinhood is making me do the verification_workflow, which takes me to _validate_sheriff_id where request_post returns "challenge_response: {'detail': 'Challenge has expired.'}". The only thing I can think of is that maybe the response from the second request_post in login, is giving the incorrect id " data['verification_workflow']['id']"? I deleted the pickle in ~/.tokens/ and it worked! |
I submitted a pull request with a fix. This is my first pull request, and I probably messed it up in a thousand ways, but at least it might get the ball rolling. |
Hey all! Thanks so much for looking into this and working on a fix. I'm a complete programming noob here, but I tried following the directions in both this thread and #510 and I'm still coming up empty with a "Login failed: 'status'" error. Here's the code I've got (with a shit ton of help from ChatGPT). What might I be missing/doing wrong yet? I thought I'd implemented the suggested fixes but apparently not...
|
@AusHar Check out @pulkitcollier's pull request linked here. This may fix your issue, although I don't have experience with totp mfa codes. |
I've tried direct download and pip installation. Always this:
The text was updated successfully, but these errors were encountered: