s0up / robinhood-api

Robinhood API Library for NodeJS w/ Async/Await support (WIP)
ISC License
11 stars 2 forks source link

Request Routing error - unsafe method #4

Open BrettKern opened 3 years ago

BrettKern commented 3 years ago

I'm trying the sample code given:

`const RobinHood = require('robinhood-api'); const robinhood = new RobinHood();

(async () => { try{ let loginResult = await robinhood.login({ username:'email@test.com', password:'mycoolpassword' });

let myUserData = await robinhood.getUserData();
console.log(myUserData);

}catch(e){ console.log('Oh noes! Login probably failed!', e); } })();`

Of course I am actually changing out email@test.com and mycoolpassword with my actual credentials, but I'm getting the error APIError: API Response Error. | Request routing error - unsafe method

Dalton-Klein commented 1 year ago

I am also getting this error, tried using the mfa option as well. No luck.