googleAnalyticsR
googleAnalyticsR copied to clipboard
Access blocked: Default GCP project for googleAnalyticsR’s request is invalid
When attempting to connect from RStudio Server 1.4.1717, getting an error stating that the request is invalid after running:
library(googleAnalyticsR)
ga_auth()
The error points to the issue: Error 400: invalid_request The out-of-band (OOB) flow has been blocked in order to keep users secure. Follow the Out-of-Band (OOB) flow migration guide linked in the developer docs below to migrate your app to an alternative method. Request details: redirect_uri=urn:ietf:wg:oauth:2.0:oob
There has been a fair amount of activity on the OOB flow issue in the gargle package (see here and here).
The R package googlesheets4 works on my system but uses a static page to generate an authorization code: https://www.tidyverse.org/google-callback
Thanks for your package and any help!
Session Info
R version 4.0.2 (2020-06-22) Platform: x86_64-koji-linux-gnu (64-bit) Running under: Amazon Linux 2
Matrix products: default BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] googleAnalyticsR_1.1.0
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 whisker_0.4 magrittr_2.0.1 rappdirs_0.3.3 usethis_2.0.1 measurementProtocol_0.1.0
[7] tidyselect_1.1.1 R6_2.5.1 rlang_1.0.6 fastmap_1.1.0 fansi_0.5.0 httr_1.4.2
[13] dplyr_1.0.7 tools_4.0.2 utf8_1.2.2 DBI_1.1.1 cli_3.0.1 withr_2.4.2
[19] googleAuthR_2.0.0 ellipsis_0.3.2 assertthat_0.2.1 digest_0.6.27 tibble_3.1.4 gargle_1.2.1.9000
[25] lifecycle_1.0.0 crayon_1.4.1 tidyr_1.2.0 purrr_0.3.4 vctrs_0.3.8 fs_1.5.0
[31] curl_4.3.2 memoise_2.0.0 glue_1.4.2 cachem_1.0.6 compiler_4.0.2 pillar_1.6.2
[37] generics_0.1.0 jsonlite_1.7.2 pkgconfig_2.0.3