Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upError in check_twitter_oauth() : OAuth authentication error: #74
Comments
This comment has been minimized.
This comment has been minimized.
denisefan28
commented
Jan 16, 2015
|
I encountered the same issue.
locale: attached base packages: other attached packages: |
This comment has been minimized.
This comment has been minimized.
completelyAbsorbed
commented
Feb 1, 2015
|
I am also encountering this issue. does anyone have a workaround? |
This comment has been minimized.
This comment has been minimized.
nurandi
commented
Feb 1, 2015
|
Update: |
This comment has been minimized.
This comment has been minimized.
completelyAbsorbed
commented
Feb 1, 2015
|
can you provide your code, please? Thank you |
This comment has been minimized.
This comment has been minimized.
nurandi
commented
Feb 2, 2015
|
Sure, here is my code. It works. Please supply your api and token.
Session Info:
|
This comment has been minimized.
This comment has been minimized.
completelyAbsorbed
commented
Feb 2, 2015
|
agh, it still does not work for me. here is my session info: R version 3.1.2 (2014-10-31) locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
This comment has been minimized.
This comment has been minimized.
completelyAbsorbed
commented
Feb 2, 2015
|
ok, I have figured it out. My Asus X-series laptop has a problem with CMOS battery, in which the date and time are usually out of sync. When I am in correct date/time, however, authentication works as expected. This is an issue with my system time, not R or OAuth, as far as I can tell. |
This comment has been minimized.
This comment has been minimized.
AlunHewinson
commented
Feb 3, 2015
|
Same error message here. I'm using a windows machine AND an Ubuntu virtual machine, and I have the same error message twice. Here is the error message
Here is the session info from both:
|
This comment has been minimized.
This comment has been minimized.
|
Hi all - When you're having issues w/ OAuth, the authentication is happening from the httr package. The first thing to do is to try running the twitter auth demo: https://github.com/hadley/httr/blob/master/demo/oauth1-twitter.r |
This comment has been minimized.
This comment has been minimized.
mingjerli
commented
Feb 11, 2015
|
Maybe this is the firewall issue. My company machine and my home machine have same session information, but only my home machine works.
|
This comment has been minimized.
This comment has been minimized.
|
Hi - 99.9% of the time I see this come up it turns out to be a firewall issue. If that doesn't appear to be the case run Hadley's example. If that doesn't succeed you'll need to talk to him as all I'm doing is passing htrough to httr |
geoffjentry
closed this
Apr 7, 2015
This comment has been minimized.
This comment has been minimized.
clutariomark
commented
May 31, 2015
|
Anyone who already fixed this? |
This comment has been minimized.
This comment has been minimized.
sooraj7m
commented
Jun 15, 2015
|
I'm running into the same issue without any resolution. The funny (or not) thing is that I run the exact same code on my Mac and it works, but on PC it won't. Can someone with a PC solution post their code? Below is my session info.
|
This comment has been minimized.
This comment has been minimized.
sdb2710
commented
Jun 16, 2015
|
Hello guys, I am having the same problem as well. I have tried out the Hadley demo as well...nothing. Any ideas? [1] "Using direct authentication"
locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
This comment has been minimized.
This comment has been minimized.
sdb2710
commented
Jun 16, 2015
|
Hello, I regenerated api_key and api_secret. Everything else as is. I'm in. |
This comment has been minimized.
This comment has been minimized.
sooraj7m
commented
Jun 16, 2015
|
I found a solution too - it was simply a firewall issue. I turned the VPN to work off and I got in |
This comment has been minimized.
This comment has been minimized.
getmetorajesh
commented
Jun 18, 2015
|
Had the same issue. I had to set, Sys.setenv(http_proxy="http://username:pass@proxy:port") Twitter requires https, so "https_proxy" is a must and it all works fine behind the firewall. |
This comment has been minimized.
This comment has been minimized.
sooraj7m
commented
Jun 18, 2015
|
What proxy:port are you using? |
This comment has been minimized.
This comment has been minimized.
getmetorajesh
commented
Jun 18, 2015
|
@sooraj7m, you have to use your own network proxy settings. If you are on corporate network check with your SysAdmin. |
This comment has been minimized.
This comment has been minimized.
Dilip1991
commented
Jun 30, 2015
|
@geoffjentry Having Trouble in direct authentication , While Demo is working Fine with me. What to do ? |
This comment has been minimized.
This comment has been minimized.
aephidayatuloh
commented
Jul 1, 2015
|
I have same trouble with @Dilip1991, but the demo didn't work fine with me. Hours ago I updated the R version use installr package. Before I update it, I still can run the authentication as well. Any ideas? This is my session info: R version 3.2.1 (2015-06-18) locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
This comment has been minimized.
This comment has been minimized.
Dilip1991
commented
Jul 1, 2015
|
@aephidayatuloh Hey Friend their is lots of issue I have read on Internet. In case of Demo , as far as I know , It is used to check whether your firewall/vpn issue is responsible for it or not(for authentication). (httr package is work as interface for twiiteR authentication). Even I don't know whats the exact issue is their with me as well . Yesterday I read gEOffjentry comment in which he mentioned if everything is working fine , Its better to wait for sometime , May be its a issue with package itself. Thanku. |
This comment has been minimized.
This comment has been minimized.
|
Hi all - see #90 - the issue is that httr changed and I haven't updated. |
This comment has been minimized.
This comment has been minimized.
wmueller7
commented
Jul 18, 2015
|
Here are the steps I took to solve the issue: library(devtools) I was able to install httr version 0.6, but the only way I don't get Error in check_twitter_oauth() is if I read packages in a certain order: library(httr) |
This comment has been minimized.
This comment has been minimized.
datapresso
commented
Jul 25, 2015
|
Thanks wmuller7. Your approach also helped me solve my issue in ubuntu 14.04, R3.2.1. |
This comment has been minimized.
This comment has been minimized.
raeed20
commented
Aug 6, 2015
|
Hi all, |
This comment has been minimized.
This comment has been minimized.
alicivil82
commented
Aug 19, 2015
|
Thanks @raeed20! I tried your solution and worked fine for me. |
This comment has been minimized.
This comment has been minimized.
mrunalpagnis
commented
Sep 29, 2015
|
@raeed20 Thank you for the solution. I had the same issues. Your solution worked perfectly fine. |
This comment has been minimized.
This comment has been minimized.
GabuTheGreat
commented
Nov 12, 2015
|
Please someone post the code using @raeed20 method. Cause it's not working for me. |
This comment has been minimized.
This comment has been minimized.
raeed20
commented
Nov 14, 2015
|
Hi @GabuTheGreat Best. |
This comment has been minimized.
This comment has been minimized.
GabuTheGreat
commented
Nov 16, 2015
|
It worked, Thank you |
This comment has been minimized.
This comment has been minimized.
maxsop
commented
Nov 23, 2015
|
Thanks @raeed20 . It worked for me! |
This comment has been minimized.
This comment has been minimized.
shantiswarup
commented
Dec 2, 2015
|
Thanks @raeed20 .. It worked |
This comment has been minimized.
This comment has been minimized.
lavsen25
commented
Dec 6, 2015
|
thanks @raeed20 it worked. |
This comment has been minimized.
This comment has been minimized.
cutekimimaru
commented
Dec 7, 2015
|
@raeed20 You save my life!!! |
This comment has been minimized.
This comment has been minimized.
Rifmaz
commented
Dec 13, 2015
|
Thanks @raeed20 for the answer! Worked perfectly! |
This comment has been minimized.
This comment has been minimized.
AlexPoma
commented
Dec 22, 2015
|
@raeed20 thanks...you save my life....(y) |
This comment has been minimized.
This comment has been minimized.
iamArunShankar
commented
Jan 29, 2016
|
Thank you @raeed20 for the solution. Installing 'base64enc' solved it smoothly :) |
This comment has been minimized.
This comment has been minimized.
mandywu
commented
Jan 29, 2016
|
@raeed20 it worked, thank you! |
This comment has been minimized.
This comment has been minimized.
gvozpaul
commented
Feb 5, 2016
|
@raeed20 Thank you, installing package "base64enc" solved issue. |
This comment has been minimized.
This comment has been minimized.
kimx3129
commented
Feb 17, 2016
|
@raeed20 Thanks a lot! It worked me :) |
This comment has been minimized.
This comment has been minimized.
Pratap5387
commented
Mar 3, 2016
|
use sdb2710 's suggestion I regenerated api_key and api_secret. Everything else as is. I'm in. |
This comment has been minimized.
This comment has been minimized.
Misterresearch
commented
May 17, 2016
|
Simple reset worked for me as well, although it was only the consumer key/secret that was actually reset. I added the callback URL under the old creds, but I think then performing the reset did the trick... |
This comment has been minimized.
This comment has been minimized.
suprematis
commented
Apr 30, 2017
•
|
Great find @Pratap5387. I spent almost 2 hours trying to authenticate, your tip did the trick. I believe that due to changes that twitter has implemented many people are having issues with authentication in R. Here is my console output code and it is working as of today:
|
This comment has been minimized.
This comment has been minimized.
dhmuskie
commented
Jun 1, 2017
|
I am having this same issue, and I have tried the following, to no avail: regenerated consumer key & secret This is quite frustrating :/ |
This comment has been minimized.
This comment has been minimized.
|
Hi @MisbahAyoub - just a note that this package has long since been deprecated in favor of the package |
This comment has been minimized.
This comment has been minimized.
|
You need to ask the author of rtweet |
This comment has been minimized.
This comment has been minimized.
JeongHansol
commented
Sep 4, 2017
|
Hi, @MisbahAyoub I am fed up with this issue and made every attempt to solve this error. (such as installing rtweet, base64enc, devtools package) |
This comment has been minimized.
This comment has been minimized.
zikoalexis
commented
Sep 15, 2017
|
@raeed20 thank youu for the solution !! |
This comment has been minimized.
This comment has been minimized.
growlkid
commented
Sep 18, 2017
|
@Pratap5387 thank you so much! working fine! :) |
This comment has been minimized.
This comment has been minimized.
ramab9
commented
Sep 20, 2017
|
Hi raeed, looks like it is a firewall issue. it worked for me on my home computer without any error . but from office machine it's not working. Can you please give me best solution to fix this issue ? |
This comment has been minimized.
This comment has been minimized.
ghost
commented
Dec 26, 2017
|
regenerating all the access tokens fixed it for me. |
This comment has been minimized.
This comment has been minimized.
nadeemkhan786
commented
Apr 9, 2018
|
OAuth has not been registered for this session |
This comment has been minimized.
This comment has been minimized.
1kishoreKulkarni
commented
Oct 24, 2018
|
This post seems to be old but the issue is still valid. I am getting same error: R Code: Librarieslibrary(twitteR) Set API Keysapi_key <- "Key" access_token <- "Key" setup_twitter_oauth(api_key, api_secret, access_token, access_token_secret) How to solve this error? ty. |
This comment has been minimized.
This comment has been minimized.
nadeemkhan786
commented
Oct 24, 2018
|
hii. yes where is your cerd file (apply cred file) and one more think your
internet must be fast
…On Thu, Oct 25, 2018 at 12:57 AM Kishore Kulkarni ***@***.***> wrote:
This post seems to be old but the issue is still valid. I am getting same
error:
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called
setup_twitter_oauth()'
R Code:
Libraries
library(twitteR)
library(ROAuth)
Set API Keys
api_key <- "Key"
api_secret <- "Key"
access_token <- "Key"
access_token_secret <- "Key"
setup_twitter_oauth(api_key, api_secret, access_token, access_token_secret)
How to solve this error? ty.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AjBubOgW-dZsXQK4e1-NvBk2WjCDJ1Ffks5uoL8SgaJpZM4DODIu>
.
|
This comment has been minimized.
This comment has been minimized.
1kishoreKulkarni
commented
Oct 24, 2018
What is cerd file in Rstudio? |
This comment has been minimized.
This comment has been minimized.
LinaYorda
commented
Nov 17, 2018
|
I would assume that you have already solved your problem, but in case you haven't I would advise you to follow all the instructions so far and also get yourself new Keys and tokens and try again. It worked with me, perfectly well. |
This comment has been minimized.
This comment has been minimized.
PankajVerma123
commented
Nov 30, 2018
|
i have also same error please help me to get out of it Step 1: Establish twitter api connection through R#To establish connection to twitter API, we'll use OAuthFactory function and twitter Application credentials. Code for connecting to Twitter APIoauth_endpoint(authorize = 'https://api.twitter.com/oauth', ##Connect to API##Connection stringsdownload.file(url = 'http://curl.haxx.se/ca/cacert.pem', destfile = 'cacert.pem') ##Twitter Application credentials Cred = OAuthFactory$new(consumerKey = consumerKey, Cred$handshake(cainfo = system.file('CurlSSL', 'cacert.pem', package = 'RCurl')) save(Cred, file = 'twitter_authentication.Rdata') ##Twitter setup setup_twitter_oauth(consumer_key = consumerKey, consumer_secret = consumerSecret, |
nurandi commentedJan 4, 2015
Last month, I wrote R script for search twitter using twitteR package. That script worked fine.
Today, I execute the script again but get an error in
check_twitter_oauth().[1] "Using direct authentication"Error in check_twitter_oauth() : OAuth authentication error:This most likely means that you have incorrectly called setup_twitter_oauth()'Following this link #67 , I update
httrpackage to the latest version (from CRAN). But, my problem can't be resolved.This is info about my R session (after updated
httr):R version 3.1.2 (2014-10-31)Platform: x86_64-w64-mingw32/x64 (64-bit)locale:[1] LC_COLLATE=English_United States.1252[2] LC_CTYPE=English_United States.1252[3] LC_MONETARY=English_United States.1252[4] LC_NUMERIC=C[5] LC_TIME=English_United States.1252attached base packages:[1] stats graphics grDevices utils datasets methods baseother attached packages:[1] twitteR_1.1.8loaded via a namespace (and not attached):[1] bit_1.1-12 bit64_0.9-4 bitops_1.0-6 DBI_0.3.1[5] digest_0.6.4 httr_0.6.1 R6_2.0.1 RCurl_1.95-4.5[9] rjson_0.2.15 stringr_0.6.2 tools_3.1.2Thank you for any advises :)