Closed bora19 closed 2 years ago
Yeah changing the password to not include special characters worked but made my password less secure. We should not be changing password sounds like a bug
This is a known issue that I'm working on. I keep getting issues created for this so I will pin this going forward until I get it resolved.
Attempted to simplify the password as outlined above -- still receiving the same error message. Is it possible this it related to 2FA?
@moosedoc011 Maybe, i do not have any features related to 2FA, i will include that as a separate feature but i will prioritize it
Just wanted to comment that I'm having this same issue as well.
I have been working this, but i havent been able to find a solution as of yet. I have posted a stackoverflow looking for help on this one, but so far no takers. Anyone interested in proposing a solution would appreciated.
After working through this issue on stackoverflow i have posted a fix below. I will add the commentary in the main README for future reference.
library(RobinHood)
# If the true password is: abc\def
# The following inputs will all work
rh <- RobinHood("username", pwd = r"(abc\def)")
rh <- RobinHood("username", pwd = "abc\\def")
rh <- RobinHood("username", pwd = "abc%5Cdef")
still getting this problem and there is no special character in the password.
R version 4.0.2 (2020-06-22) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Mojave 10.14.6
are you inputting your email as your username?
@e-arslan do you have 2-step authentication enabled on your account? I have not implemented that feature yet but agree its time. I will start looking into it.
I'm getting this same problem. I have a special character in the password. I am using email address as username. I've tried the proposed fixes from November 7, but they aren't working for me. I have mfa disabled on account.
@wittec what package version are you on?
I tried the GitHub and the Cran version, but no luck.
Chris Witte Research Scientist Agricultural and Biosystems Engineering Iowa State University 4306B Elings Hall Ames, IA 50011 573-864-6629
From: Jeston @.> Sent: Friday, July 30, 2021 5:26:24 PM To: JestonBlu/RobinHood @.> Cc: Witte, Christopher C [A&BE] @.>; Mention @.> Subject: Re: [JestonBlu/RobinHood] Keep getting error in useMethod("tbl_vars") (#99)
@wittechttps://github.com/wittec what package version are you on?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/JestonBlu/RobinHood/issues/99#issuecomment-890218516, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG6MS6FSXHLYKIVS2ACCZPLT2MRJBANCNFSM4NREEBSQ.
@wittec do you have multi-factor authentication enabled?
Nope
Chris Witte Research Scientist Agricultural and Biosystems Engineering Iowa State University 4306B Elings Hall Ames, IA 50011 573-864-6629
From: Jeston @.> Sent: Saturday, July 31, 2021 8:09:25 AM To: JestonBlu/RobinHood @.> Cc: Witte, Christopher C [A&BE] @.>; Mention @.> Subject: Re: [JestonBlu/RobinHood] Keep getting error in useMethod("tbl_vars") (#99)
@wittechttps://github.com/wittec do you have multi-factor authentication enabled?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/JestonBlu/RobinHood/issues/99#issuecomment-890346336, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG6MS6DLGMZ2BKI55YWKNK3T2PYYLANCNFSM4NREEBSQ.
I just tried it both with and without MFA and it worked fine for me. My password also contains special characters. Could you maybe try changing your password and using some different special characters to see if that works? I have continued to receive a few inquiries about this, but i havent been able to find anymore issues related to the code. I keep coming back to the password itself.
Ok, a password change was going to be my last effort. Thanks for your reply!
From: Jeston @.> Sent: Saturday, July 31, 2021 8:19:56 AM To: JestonBlu/RobinHood @.> Cc: Witte, Christopher C [A&BE] @.>; Mention @.> Subject: Re: [JestonBlu/RobinHood] Keep getting error in useMethod("tbl_vars") (#99)
I just tried it both with and without MFA and it worked fine for me. My password also contains special characters. Could you maybe try changing your password and using some different special characters to see if that works? I have continued to receive a few inquiries about this, but i havent been able to find anymore issues related to the code. I keep coming back to the password itself.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/JestonBlu/RobinHood/issues/99#issuecomment-890347767, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG6MS6GPLDNHYQTOMGTOZWLT2PZ7ZANCNFSM4NREEBSQ.
I just tried it both with and without MFA and it worked fine for me. My password also contains special characters. Could you maybe try changing your password and using some different special characters to see if that works? I have continued to receive a few inquiries about this, but i havent been able to find anymore issues related to the code. I keep coming back to the password itself.
I changed my password and it is working now! Thank you!
That's great. Id like to know what went wrong with your last password. Would you mind sharing what special characters you used in your password that didn't work and what character position they were in? I'll try to work a fix if there is something I can do.
On Sat, Aug 14, 2021, 4:20 PM wittec @.***> wrote:
I just tried it both with and without MFA and it worked fine for me. My password also contains special characters. Could you maybe try changing your password and using some different special characters to see if that works? I have continued to receive a few inquiries about this, but i havent been able to find anymore issues related to the code. I keep coming back to the password itself.
I changed my password and it is working now! Thank you!
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/JestonBlu/RobinHood/issues/99#issuecomment-898960045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZPNBM42XIXED6MYS5BWZTT43MZBANCNFSM4NREEBSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
it was a "#" character. It was in the middle of the password.
Thanks. I'll look into it and hopefully find a solution.
On Sat, Aug 14, 2021, 4:35 PM wittec @.***> wrote:
it was a "#" character. It was in the middle of the password.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/JestonBlu/RobinHood/issues/99#issuecomment-898961368, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZPNBOR6QT7GOCQUVE4NDLT43ORFANCNFSM4NREEBSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Hi! First of all, thank you for making this package available. Great work!
I am running into issues with this as well. After ironing out details with password and MFA, my error is now slightly different to the ones described above but also a table_vars()
error:
RH <- RobinHood(username="me@email.com", password="nospecialcharacters")
> Error in UseMethod("tbl_vars") :
> no applicable method for 'tbl_vars' applied to an object of class "logical"
Digging in a bit further, it looks like authentication works fine but my response json does not contain margin balances
dta$margin_balances
[1] NA
Any ideas how to get around this?
UPDATE:
I was able to get around the issue by manually inserting some fake data for margin_balances
. It seems that the issue may be that I don't have RobinHood gold. If that is a requirement for the package I think it would be good to mention it in the readme or the "Getting Started" vignette. If it isn't would you be open to a merge request to implement a flag or an automated detection of gold vs non gold accounts to fix this?
@JanLauGe
I am having the same issues after months of successful access, and just posted on thread https://github.com/JestonBlu/RobinHood/issues/124 .
Thinking about what changed for me this week...I downgraded my account from Instant Settlement to Cash in order to day trade with a smaller balance. I just read that you were having issues with margin balances being NA. This would make sense if margin trading is disabled, which is a feature of the Cash account. You say you had to supply "fake data" for the margin_balances to resolve the issue. Can you provide more insight on how you did this? I want to try the same.
Thanks!
Hey @SwingBotScripts! Coming back to this after some time. I just put in a PR that fixes this for me. Root cause is a small if statement that seems buggy. PR: https://github.com/JestonBlu/RobinHood/pull/146
When trying to connect via the following command
RH = RobinHood(username = "MyUsername", password = "MyPassword")
I keep getting the following error code
Error in UseMethod("tbl_vars") : no applicable method for 'tbl_vars' applied to an object of class "NULL"
Im using the correct username and password. NOTE: my password includes special characters not sure if it matters or not