Skip to content

Request Routing error - unsafe method #4

Description

@BrettKern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions