-
-
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
ga_account_list failing to parse response for UA data #413
Comments
Odd as this is a very old function without issues before. Are you using your own client id? The important bit in the parse error object is the structure (str()) so if you can show that there is a much better chance to fix it. I can only think the api response has changed for some reason. |
I'm not using my own client id. The authentication is the default one. I've pasted below the redacted and truncated gargle file (left a few anonymised values in, the rest I've deleted):
|
Hi Mark, I've done a full reinstall of R and RStudio (including deleting R library / RStudio folders after uninstall to wipe any files that may cause conflicts). Sadly the error remains (but slightly more informative):
|
It looks to me you may have some unusual GA structure, perhaps a web property with no views? The key area is in the content$items$webproperties object so some |
Funny this only comes up now after many years, I guess you may have some unique GA account structure? If you run the command in the error message it will output the request and response objects that can be used to update the parsing script. You can edit out sensitive values, it's the structure that's important not the values. |
Hi Mark! I've attached the redacted gar_parse_error as an RData file. Thanks for looking into this! And yes, you are right, I seem to have some weird GA account permissions (account access but without any child property access) |
What goes wrong
Hello,
I am currently unable to get an output from the ga_account_list() function as the function fails. The error message is copied below.
Steps to reproduce the problem
I'd like to mention that I've updated my R to version 4.2.1 and all my packages have also been updated to the most recent version (as of the 31st of October 2022):
Previous versions installed that were still working:
I have installed the previous version of the above packages but I'm still getting the error. I suspect there may be some other dependencies and that is why?
Regarding the gar_parse_error.rds file, I can't share it since it contains client information.
Expected output
Actual output
Before you run your code, please run:
options(googleAuthR.verbose=2)
and copy-paste the console output here.'API Data failed to parse' diagnostics
Regarding the gar_parse_error.rds file, I can't share it since it contains client information.
Session Info
The text was updated successfully, but these errors were encountered: