If you are having issues with log in errors in 2024, here's what I did to fix it:
1- in Robinhood.py add the line
"scope": "internal" to the fields Dict in the method def login(both under the if mfa_code and the else statement)
2- in Robinhood.py, under self.headers in init, change "X-Robinhood-API-Version" from "1.0.0" to "1.431.4"
3- in Robinhood.py, in init, comment out "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15"
If you are having issues with log in errors in 2024, here's what I did to fix it:
1- in Robinhood.py add the line "scope": "internal" to the fields Dict in the method def login(both under the if mfa_code and the else statement)
2- in Robinhood.py, under self.headers in init, change "X-Robinhood-API-Version" from "1.0.0" to "1.431.4"
3- in Robinhood.py, in init, comment out "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15"