Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

"Error in : oauth_listener() needs an interactive environment" again #54

Open
MarekLu opened this issue May 22, 2018 · 2 comments
Open

Comments

@MarekLu
Copy link

MarekLu commented May 22, 2018

I use RGA in Shiny web application: I authorize it using my client.id and client.secret:

  1. R Studio creates local file-token .myemail-token.rds, I must confirm it in web browser for the first time.
  2. R Studio need no authorization next times, it uses locally saved token everytime.
  3. When I copy all R scripts and token to Shiny FTP and run the app from web browser, it needs authorization again. This is error from JS console:
Access token will be stored in the '.myemail-token.rds' file.
Warning: Error in : oauth_listener() needs an interactive environment.
Stack trace (innermost first):
    44: oauth_listener
    43: init_oauth2.0
    42: self$init_credentials
    41: public_bind_env$initialize
    40: Token2.0$new
    39: oauth2.0_token
    38: authorize
     1: runApp
Error : oauth_listener() needs an interactive environment.

I've read the #20, I make everything like in this issue, but no effect, still the same error.

Can you give me an advice please?

@jdeboer
Copy link

jdeboer commented Jul 1, 2018

Have you considered using a Google API service account instead? Here's a link to an explanation on Stack Overflow: https://stackoverflow.com/a/38301278/1007029

@MarekLu
Copy link
Author

MarekLu commented Jul 9, 2018

Unfortunately I can not use Service Acccount with these Google Analytics accounts. Corporate policy...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants