robinhood-unofficial / pyrh

Python Framework to make trades with the unofficial Robinhood API
https://pyrh.readthedocs.io/en/latest/
MIT License
1.79k stars 605 forks source link

"Incorrect padding" Error when trying to login #278

Closed vpmkw closed 3 years ago

vpmkw commented 4 years ago

from pyrh import Robinhood

rh = Robinhood()

p = r'''asFHSGHFAER:ER"E:ew[tpwt43759y24DE#@''' #not real pw but i included it to show that im using a raw docstring

rh.login(username='myemail+rh@gmail.com', password=p, qr_code= '010284') # just used 010284 as an example here

When i run this, i get:


Error Traceback (most recent call last)

in () 4 p = r'''asFHSGHFAER:ER"E:ew[tpwt43759y24DE#@''' 5 ----> 6 rbh.login(username='myemail+rh@gmail.com', password=p, qr_code= '010284') 2 frames /usr/lib/python3.6/base64.py in b32decode(s, casefold, map01) 203 s = _bytes_from_decode_data(s) 204 if len(s) % 8: --> 205 raise binascii.Error('Incorrect padding') 206 # Handle section 2.4 zero and one mapping. The flag map01 will be either 207 # False, or the character to map the digit 1 (one) to. It should be Error: Incorrect padding I tried passing passing a bytes like object in the qr_code parameter like this: rbh.login(username='myemail+rh@gmail.com', password=p, qr_code= b'010284') but I'm getting the same issue.
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.