Skip to content
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

Error: Could not authenticate via any gargle cred function #81

Open
cspenn opened this issue Mar 15, 2023 · 0 comments
Open

Error: Could not authenticate via any gargle cred function #81

cspenn opened this issue Mar 15, 2023 · 0 comments

Comments

@cspenn
Copy link

cspenn commented Mar 15, 2023

What goes wrong

When doing the basic authentication sequence now, returns an error.

Steps to reproduce the problem

options(searchConsoleR.client_id = rgaoauthid)
options(searchConsoleR.client_secret = rgaoauthsecret)


if (!exists("auth")) {
  auth <- scr_auth()
}

This used to work. I have installed the latest versions of gargle, googleAuthR, and searchConsoleR from the Github dev versions.

Expected output

An auth object.

Actual output

✔ Setting client.id from /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/searchConsoleR/clients/native.json
ℹ 2023-03-15 13:52:52 >  options(googleAuthR.scopes.selected=c(' https://www.googleapis.com/auth/webmasters '))  options(googleAuthR.client_id=' xXX.apps.googleusercontent.com ')  options(googleAuthR.client_secret=' XXX ')  options(googleAuthR.webapp.client_id='  ')  options(googleAuthR.webapp.client_secret='  ')
Error: Could not authenticate via any gargle cred function

Session Info

R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.2.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] forcats_1.0.0             stringr_1.5.0             dplyr_1.1.0               purrr_1.0.1               readr_2.1.4              
 [6] tidyr_1.3.0               tibble_3.2.0              tidyverse_2.0.0           here_1.0.1                stringi_1.7.12           
[11] skimr_2.1.5               showtext_0.9-5            showtextdb_3.0            sysfonts_0.8.8            ggrepel_0.9.3            
[16] ggplot2_3.4.1             gt_0.8.0                  searchConsoleR_0.4.0.9000 googleAuthR_2.0.0         janitor_2.2.0            
[21] lubridate_1.9.2           beepr_1.3                 pacman_0.5.1             

loaded via a namespace (and not attached):
 [1] httr_1.4.5        pkgload_1.3.2     jsonlite_1.8.4    shiny_1.7.4       assertthat_0.2.1  remotes_2.4.2     sessioninfo_1.2.2
 [8] pillar_1.8.1      glue_1.6.2        digest_0.6.31     promises_1.2.0.1  snakecase_0.11.0  colorspace_2.1-0  htmltools_0.5.4  
[15] httpuv_1.6.9      pkgconfig_2.0.3   devtools_2.4.5    xtable_1.8-4      scales_1.2.1      processx_3.8.0    later_1.3.0      
[22] tzdb_0.3.0        timechange_0.2.0  generics_0.1.3    usethis_2.1.6     ellipsis_0.3.2    cachem_1.0.7      withr_2.5.0      
[29] repr_1.1.6        cli_3.6.0         magrittr_2.0.3    crayon_1.5.2      mime_0.12         memoise_2.0.1     ps_1.7.2         
[36] fs_1.6.1          fansi_1.0.4       pkgbuild_1.4.0    profvis_0.3.7     tools_4.2.2       prettyunits_1.1.1 hms_1.1.2        
[43] gargle_1.3.0      lifecycle_1.0.3   munsell_0.5.0     callr_3.7.3       compiler_4.2.2    rlang_1.1.0       grid_4.2.2       
[50] rstudioapi_0.14   rappdirs_0.3.3    htmlwidgets_1.6.1 miniUI_0.1.1.1    base64enc_0.1-3   gtable_0.3.1      curl_5.0.0       
[57] R6_2.5.1          knitr_1.42        fastmap_1.1.1     utf8_1.2.3        rprojroot_2.0.3   desc_1.4.2        Rcpp_1.0.10      
[64] vctrs_0.5.2       urlchecker_1.0.1  audio_0.1-10      tidyselect_1.2.0  xfun_0.37        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant