You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter email or Press Ctrl+C Twice To Exit:********************
Pass:*****************
ErrorLoggingIn (Right here, after submitting email and password I successfully get the sms with the code, but rh.auth.login doesn't prompt for sms anymore after rh change or robin_stocks update and just fails out? I think that's what I'm seeing)
Exception from within authentication.login(): 'status'
get_cash Failure
build_user_profile can only be called when logged in
Now Killing process...
Traceback (most recent call last):
File "/home/machine/Desktop/bot/Bot.py", line 1145, in get_cash
rh_cash = rh.account.build_user_profile()
File "/home/machine/.local/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 31, in login_wrapper
raise Exception('{} can only be called when logged in'.format(
Exception: build_user_profile can only be called when logged in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/machine/Desktop/bot/Bot.py", line 15497, in
Cash = get_cash()
File "/home/machine/Desktop/bot/Bot.py", line 1163, in get_cash
os.kill(os.getpid(), signal.SIGINT)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered:
This pull request (#526) will fix the issue where you are no longer prompted for the MFA code by your login script.
After you implement the change let me know if it works entirely for you or you get a little further but run into another issue
Something is wrong with the 'while code incorrect', dict doesn't contain status_code
Though I wiped, cloned, install, and only added v.workflow mfa=input('enter mfa') and it works fine... obviously it would be preferable to have a 'if it's incorrect' but ya, I'm up.
Apologies, a little rusty as it's been awhile. Below is execution/print(e)/etc. This is after a fresh uninstall/reinstall via pip.
my login code:
........
def login(days):
try:
time_logged_in = 606024*days
rh.authentication.login(username=input("Enter email or Press Ctrl+C Twice To Exit:"),
password=input("Pass:"),
expiresIn=time_logged_in,
scope='internal',
by_sms=True,
store_session=False)
print('Login Successful')
except Exception as e:
print('ErrorLoggingIn')
time.sleep(5)
def get_cash():
try:
rh_cash = rh.account.build_user_profile()
etc....
.......
Failure below, console output:
Enter email or Press Ctrl+C Twice To Exit:********************
Pass:*****************
ErrorLoggingIn (Right here, after submitting email and password I successfully get the sms with the code, but rh.auth.login doesn't prompt for sms anymore after rh change or robin_stocks update and just fails out? I think that's what I'm seeing)
Exception from within authentication.login(): 'status'
get_cash Failure
build_user_profile can only be called when logged in
Now Killing process...
Traceback (most recent call last):
File "/home/machine/Desktop/bot/Bot.py", line 1145, in get_cash
rh_cash = rh.account.build_user_profile()
File "/home/machine/.local/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 31, in login_wrapper
raise Exception('{} can only be called when logged in'.format(
Exception: build_user_profile can only be called when logged in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/machine/Desktop/bot/Bot.py", line 15497, in
Cash = get_cash()
File "/home/machine/Desktop/bot/Bot.py", line 1163, in get_cash
os.kill(os.getpid(), signal.SIGINT)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered: