Open atomantic opened 6 years ago
@atomantic could you confirm that MFA caused the error?
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.
Hmm, I continued to get errors. Not sure why. I removed MFA but the issue persisted.
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.
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
Getting an Error on load with the following tooltip output:
I'm not seeing a call to api.robinhood.com in the loading sequence.
Perhaps this is failing because of MFA... investigating...