Closed felippelazar closed 1 year ago
I can think of at least 2 reasons for this. gargle (and googlesheets4 and googledrive) just all updated on CRAN.
There are changes in gargle that may mean you need to re-cache the token you're using. In particular, if you obtained this token using the built-in tidyverse OAuth client, you probably need to go through the OAuth dance again interactively. That's the somewhat expected issue.
(I've also found a bug in the just-released gargle 1.5.0, which I've fixed and will soon put in a patch release. However, I don't think this bug would be affecting you.)
There are changes in gargle that may mean you need to re-cache the token you're using. In particular, if you obtained this token using the built-in tidyverse OAuth client, you probably need to go through the OAuth dance again interactively. That's the somewhat expected issue.
Hi @jennybc,
Your solution worked like a charm. I created another cached token (OAuth client), uploaded and it worked. Thank you.
Best,
Felippe
That is the downside of using a user token for such a purpose. A user token is really meant to be a rather ephemeral and perishable thing, because the assumption is that there's always an interactive user close by, if you need to mint a new one. So you'll have to be at peace with re-making it periodically. That being said, sometimes there's a reason why you really need that instead of, e.g., a service account token.
Hi,
I have a github action with R that automatically checks a google sheets and send emails based on the google sheets rows (check by date). This was working without any problems until yesterday (since March/23, working well until yesterday), when it started giving me error during authentication.
I'm using a cache authentication with gs4_auth(). Here is the problem debugger when running gs4_auth()
It works well in R Studio. NOTE: I have changed my email address from the log to preserve anonimity.
Here is as well my YAML code