Skip to content

Error: Can't get Google credentials. #318

@stratsheets

Description

@stratsheets

When using RStudio, package googlesheets4 I now receive this error message.

'Error in gs4_auth():
! Can't get Google credentials.
ℹ Are you running googlesheets4 in a non-interactive session? Consider:
• Call gs4_deauth() to prevent the attempt to get credentials.
• Call gs4_auth() directly with all necessary specifics.
ℹ See gargle's "Non-interactive auth" vignette for more details:
https://gargle.r-lib.org/articles/non-interactive-auth.html

Backtrace:

  1. └─googlesheets4::gs4_auth()
    Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.

rlang::last_trace(drop = FALSE)
<error/googlesheets4_error>
Error in gs4_auth():
! Can't get Google credentials.
ℹ Are you running googlesheets4 in a non-interactive session? Consider:
• Call gs4_deauth() to prevent the attempt to get credentials.
• Call gs4_auth() directly with all necessary specifics.
ℹ See gargle's "Non-interactive auth" vignette for more details:
https://gargle.r-lib.org/articles/non-interactive-auth.html


Backtrace:

  1. └─googlesheets4::gs4_auth()
  2. └─googlesheets4:::gs4_abort(...)
  3. └─cli::cli_abort(...)
    
  4.   └─rlang::abort(...)`
    

I use this R script frequently and this was working perfectly for me one week ago. I have read similar posts in the past but so far I've had no luck resolving the problem.

Since receiving this error I have only been able to open the browser once using gs4_auth() and a Google error message appeared: Access blocked: Tidyverse API Packages request is invalid.

Has something changed with Google's security lately or has anyone else experienced this error today?

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❓a question or discussion about usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions