-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-authentication JSON file not working / Account list parsing fail #41
Comments
Can you try deleting or moving the existing |
Hi Mark, I tried this already, the error message keeps a little bit the same. Here it is: No authorization yet in this session! |
The error suggests its not finding the file you are specifying at that filepath. You can check to see if you can load it via: library(jsonlite)
fromJSON(path_to_your_json) ..and you can autheticate directly using googleAuthR::gar_auth_service("my_key.json") May I also see your sessionInfo:
Also try putting the file in the |
Hey Mark, this is really strange... I used this:
(btw: the file is there, I tried to load it into JSON object and it works 👍 ) Now the auth seems to work (but not quite). Now appeared this:
This is my sessionInfo:
|
Ah, looks like you have CRAN version of devtools::install_github("MarkEdmondson1234/googleAnalyticsR") The account parsing though looks like a different issue. If possible could you do a |
This is still strange: I installed your version from github, when I now invoke "library(googleAnalyticsR)" it will use automatically your version? Or do I have to refer to it any other way? The auto-authentication is not working with this approach. If the authentication is now made with my JSON (it works with googleAuthR::gar_auth_service(Sys.getenv("GA_AUTH_FILE"))) str(account_list) is NULL The user is my service account r-xxxxx-yyyyy@zzzzzzz.iam.gserviceaccount.com This one is admin level in one GA account (on account level checked: manage users, etc.). |
Hi Mark, Hope this helps debugging. Really appreciate your work! |
Thanks @mischa2002k2 , this will help. I wonder if it fails for all 1 length data.frames. |
@mischa2002k2 I think your two issues here should now be solved using the current github version, namely auto-auth and single row account summary lists. Reopen if that is not the case. |
Hello, I had exactly same error here and I tried all methods mentioned above but I still got the same error message (API Data failed to parse). Do you have any suggestion for this? Thanks in advance. |
@palooney could you please open it with a new issue and an example of your code, along with the output of |
Hi,
maybe I'm just not fully integrating the authentication process. But as I followed the setup the only thing I need to do is to place the .json from Google APIs Admin Console and point to it with the Global variable.
Sys.setenv(GA_AUTH_FILE = "/Users/michaelsinner/rStudio/test/auth/myAuth.json")
When I try to run a simple test code I get this error:
No authorization yet in this session!
NOTE: a .httr-oauth file exists in current working directory.
Run gar_auth() to use the credentials cached for this session.
Token doesn't exist
Fehler in acc_sum() : Invalid Token
Zusätzlich: Warnmeldung:
In checkTokenAPI(shiny_access_token) : Invalid local token
What am I missing? Is there an issue with the auto authentication with JSON file?
The text was updated successfully, but these errors were encountered: