400 Client Error: Bad Request for url: https://api.robinhood.com/oauth2/token/
See original GitHub issueI have encountered this issue today:
token = 'Bearer {}'.format(data['access_token'])
TypeError: 'NoneType' object is not subscriptable
I have done some digging and it looks like the issue is happening in this line in authetication.py:
data = helper.request_post(url,payload)
The error that I’m seeing is:
data = helper.request_post(url,payload)
this is the redacted payload, note that the password and username are working correctly in the robinhood app.
challenge_type:sms
client_id:xxx
device_token:b34e3cf0-c549-8cef-2722-4f662bb12d96
expires_in:86400
grant_type:password
password:xxx
scope:internal
username:diego.vargas.frontanilla@xxx
I’ve seen this error before but it usually went away after restarting my python interpreter, however today, it is just not going away. I have even tried re installing robin_stocks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Issues - GitHub
login issue, 400 Client Error: Bad Request for url: https://api.robinhood.com/oauth2/token/ #176. Closed. hz2018tv opened this issue on Apr ...
Read more >Iam getting this error in R Program : Error in RobinHood ...
Iam getting this error in R Program : Error in RobinHood::api_login(username, password, mfa_code) : Bad Request (HTTP 400). RH Credentials.
Read more >Solved: Dropbox oAuth2 auth process fails with 400 Bad Req...
User approves access and dropbox redirects me back to the redirect_url and there is the code argument (access code). When i call /oauth2/token...
Read more >nodejs robinhood api login | Edureka Community
I'm trying to use the Robinhood API, and I've disabled 2FA and SMS in ... Error: token not found {"statusCode":400,"body":{"detail":"Request ...
Read more >400 Bad request for generating a token in postman - Questions
Description: Clients with 'application_type' of 'service' are not allowed to access the 'authorize' endpoint. So how do I fix this 400 error ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Although I don’t have 2FA setup, it seems I get a text message with a 6 digit code when I call .login() and receive this 400 error. So I am assuming it’s something having to do with that.
closing. see issue #24