Closed petermeissner closed 9 years ago
Works for me. Auth failure usually indicates you've set up your app incorrectly. Make sure you've set the callback url to "http://127.0.0.1:1410"
That was the missing part. Thanks.
If I set the callback URL to localhost:1410 twitCred$handshake(cainfo="cacert.pem") does not work, and if set this to space, the browser appears correctly. On the other hand, it seems that setup_twitter_oauth(consumerKey, consumerSecret) requires localhost:1410 but the R terminal disappears then. Can you explain why? I think many people are in trouble.
I remember reading a lot about TwitterAPI not working with localhost
as callback URL. Try replacing ...
localhost:1410
... by verbose ...
http://127.0.0.1:1410
... and see if this solves the problem.
I did it. The situation remains the same.
the "http://127.0.0.1:1410" solution resolved the issue I was having with this.
I'm having the same problem, even after making the callback = http://127.0.0.1:1410/
After executing this code: twitter_token <- oauth1.0_token(oauth_endpoints("twitter"), myapp)
Rstudio gives me this message while alerting me to a fatal error, wishing to restart a session:
Waiting for authentication in browser.... press ESC/ctrl + C to abort Error in withCallingHandlers(trycatch(evalq((function (has = TRUE, parent = parent.frame(),: object '.rcpp_warning_recorder' not found
I've been trying this on 4 different platforms: Windows 7 and 8, and a linux mint and lubuntu. I've also tried on 2 different locations, one at home (win 8 and the 2 linux machines) and one at work (the win 7).
Where should I begin to trouble shoot this?
@briholt100 that's a different issue, and can be solved by reinstalling Rcpp.
Thank you. That worked for my Window machines. But it didn't help with the linux machines. I'll have to dig a bit more. Thanks again.
my linux machines just needed RCurl reinstalled and httr is working. Still learning; thanks for your help.
@prof-joe does it finally work? I am having same issue. Handshake does not work and says "Can not connect to server 127.0.0.1"
This helped me with the same error http://stackoverflow.com/a/29505711/563329
Thank you for this! It was driving me crazy.
Hi @geoffjentry i have tried almost everything suggested by most of the people here but still i am getting the same error. can someone please help me out with this.
setup_twitter_oauth(api_key,api_secret,access_token,access_token_secret) [1] "Using direct authentication" Error in check_twitter_oauth() : OAuth authentication error: This most likely means that you have incorrectly called setup_twitter_oauth()'
@aishwarya91 Hi - your comment is about twitteR
, not httr
although it's possible that the underlying cause leads you back here anyways as the former acts mainly as a passthrough for the latter.
Also note that twitteR
is deprecated in favor of rtweet
from @mkearney so you might want to look into using that instead.
The demo shown in oauth1-twitter.r does not work (tested on Win7 / Win8 with up to date httr from CRAN)