You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the most common errors I've seen when authenticating with service accounts is that user's try to use the client JSON rather than the service account key JSON.
If I replicate this behaviour with credentials_service_account() I get an error that the file is not present, rather than it is present but the wrong file.
To help with this I check for the presence for $private_key in the JSON file, to help give a hint:
secrets<- fromJSON(json_file)
if(is.null(secrets$private_key)){
stop("$private_key not found in JSON - have you downloaded the correct JSON file? (Service Account Keys, not service account client)")
}
The text was updated successfully, but these errors were encountered:
One of the most common errors I've seen when authenticating with service accounts is that user's try to use the client JSON rather than the service account key JSON.
If I replicate this behaviour with
credentials_service_account()
I get an error that the file is not present, rather than it is present but the wrong file.To help with this I check for the presence for
$private_key
in the JSON file, to help give a hint:The text was updated successfully, but these errors were encountered: