Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error on load #2

Open
atomantic opened this issue Jul 5, 2018 · 5 comments
Open

error on load #2

atomantic opened this issue Jul 5, 2018 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@atomantic
Copy link

atomantic commented Jul 5, 2018

Getting an Error on load with the following tooltip output:

Cannot find method put(string,(class),(class)). (line 78).

I'm not seeing a call to api.robinhood.com in the loading sequence.

Perhaps this is failing because of MFA... investigating...

@westonplatter
Copy link

@atomantic could you confirm that MFA caused the error?

@atomantic
Copy link
Author

Yes--after trying it a few more times, I realized Robinhood was sending me a lot of MFA codes :)

It appears they have interfaces for working with the MFA endpoint so it can probably be added.

@westonplatter
Copy link

Hmm, I continued to get errors. Not sure why. I removed MFA but the issue persisted.

@rghuckins
Copy link
Owner

I can look into this when I have some free time. Admittedly, I haven't touched this code or used these functions in quite some time. Of course if anybody has found a fix, any contributions here are welcome.

@rghuckins rghuckins added the help wanted Extra attention is needed label Jul 26, 2018
@jWhytis01
Copy link

All,

I am also receiving the message:
Cannot find method put(string,(class),(class)). (line 80).

I added two lines of logging to getClassicToken_:

function getClassicToken_() {
var url = robinhoodApiBaseUrl + '/api-token-auth/';
var payload = {
'username': robinhoodUsername,
'password': robinhoodPassword
};
var options = {
'method': 'post',
'payload': payload,
'muteHttpExceptions': true
};
var response = UrlFetchApp.fetch(url, options);
var responseJson = JSON.parse(response.getContentText());
var classicToken = responseJson.token;
Logger.log(responseJson)
Logger.log(classicToken)

return classicToken;
}

And the log reads:
[18-08-09 11:14:02:625 EDT] {non_field_errors=[Unable to log in with provided credentials.]}
[18-08-09 11:14:02:625 EDT] undefined

Can anyone confirm their creds are working with the existing code?

Thanks,
Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants