Skip to content

Auth does not work using cronjobs (cronR) #120

@schmalte04

Description

@schmalte04

I am currently using googlesheets in production and want to switch now to googlesheets4, but the auth method is giving me a hard time.

Previously i authed through a .rds file where my google token was stored. Using googlesheets4 now i auth via my mail sheets_auth(email="[email protected]"). It works fine in RStudio but as soon as i run it in a cronjobs via cronR it fails and give me the following error:

Fehler: Can't get Google credentials.
Are you running googledrive in a non-interactive session? Consider:

  • drive_deauth() to prevent the attempt to get credentials.
  • Call drive_auth() directly with all necessary specifics.

I tried to use OOB, which didnt worked. I tried to auth via service account and token in a json file. Didnt worked..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions