question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

400 Client Error: Bad Request for url: https://api.robinhood.com/oauth2/token/

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dirigible37commented, May 5, 2019

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.

0reactions
jmfernandescommented, Aug 8, 2019

closing. see issue #24

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found