skardhamar / rga

R Google Analytics
186 stars 88 forks source link

Error in if (.self$tokenExpiresIn() <= 0) { : argument is of length zero #90

Open gauravkaroliwal opened 7 years ago

gauravkaroliwal commented 7 years ago

getting this error when reuse the authentication token.

rga.open(instance = "sa") Browse URL: https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/analytics.readonly&state=%2Fprofile&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=862341168163-qtefv92ckvn2gveav66im725c3gqj728.apps.googleusercontent.com&approval_prompt=force&access_type=offline Please enter code here: sa$getProfiles() Error in if (.self$tokenExpiresIn() <= 0) { : argument is of length zero

MaxQlikview commented 7 years ago

I also have the same issue. It is strange, I have the same script on both machines. It works on one laptop, and doesn't on another, generating "Error in if (.self$tokenExpiresIn() <= 0) { : argument is of length zero".. Set up is identical on both machines. Please Help! Thank you, Max