-
Notifications
You must be signed in to change notification settings - Fork 474
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
Can No Longer Login To Robinhood via robin-stocks API #513
Comments
Try using #510. This worked for me. |
Christopher,
Thanks so much for responding. If I understand correctly, there is supposed to be a function _get_sherrif_challenge in authentication.py. I'm using robin_stocks version 3.2.1 and I don't see that function in that file. I must be missing something. Can you point me in the right direction?
Thanks,
Kevin Benson
From: Christopher Robinson ***@***.***>
Sent: Sunday, December 8, 2024 10:55 AM
To: jmfernandes/robin_stocks ***@***.***>
Cc: Two20Two21 ***@***.***>; Author ***@***.***>
Subject: Re: [jmfernandes/robin_stocks] Can No Longer Login To Robinhood via robin-stocks API (Issue #513)
Try using #510<#510>. This worked for me.
-
Reply to this email directly, view it on GitHub<#513 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZPO3ODZTG3NP6P4WJL2ER2WNAVCNFSM6AAAAABTGQCDUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWGIYTOMRTGY>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
if that doesn't work. Seems this works for those that #510 doesn't work for: |
Christopher,
Thanks! I am up and running. I'm sure I would still be struggling if not for your help.
Kevin
From: Christopher Robinson ***@***.***>
Sent: Sunday, December 8, 2024 11:49 PM
To: jmfernandes/robin_stocks ***@***.***>
Cc: Two20Two21 ***@***.***>; Author ***@***.***>
Subject: Re: [jmfernandes/robin_stocks] Can No Longer Login To Robinhood via robin-stocks API (Issue #513)
if that doesn't work. Seems this works for those that #510<#510> doesn't work for:
#511 (comment)<#511 (comment)>
-
Reply to this email directly, view it on GitHub<#513 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BNQ7WZL7LGUA2QNLCTOGM3T2EUVNPAVCNFSM6AAAAABTGQCDUCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRWHE4TANJYGI>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem Statement:
I have been running robin-stocks API to access Robinhood for a few months. I've had no issues until a few days ago. Now, I cannot login.
Previously, Robinhood has asked me to verify it's me and then I have to input an MFA code. Now, it still asks me to verify it's me but before asking me to input the MFA code, it stops due to an unhandled exception. Looking at the API code, it appears the code expects an 'access_token' to be returned. When there isn't one, it throws the exception. I get back code 403.
I have not changed anything I am aware of. I've even gone back to a compiled version that's been working since 11/21/24 and it now does not work either. I've tried inputting a new Authenticator App code. My email and password are correct. The problem is occurring on two different computers, both previously working fine.
I'm stumped. Please help.
My Code:
import robin_stocks.robinhood
import pyotp
from datetime import *
now = datetime.now()
totp = pyotp.TOTP("KACUJH6EKZZCVZ6K").now()
print("TOTP: " + str(totp))
login = robin_stocks.robinhood.login(my_user_name, my_password, store_session=True)
Console Error:
Connected to pydev debugger (build 242.23339.19)
TOTP: 699780
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2024.2.3\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\JetBrains\PyCharm 2024.2.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\kbens\OneDrive\Earnie TradeBot\Code\Earnie\StockTest.py", line 13, in
login = robin_stocks.robinhood.login(my_user_name, my_password, store_session=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\kbens\AppData\Local\Programs\Python\Python312\Lib\site-packages\robin_stocks\robinhood\authentication.py", line 197, in login
raise Exception(data['detail'])
~~~~^^^^^^^^^^
KeyError: 'detail'
Process finished with exit code 1
API Code: last line with "raise Exception" is where the error occurs, no 'detail' in data, there was no access_token which seems to be the fundamental problem.
The text was updated successfully, but these errors were encountered: