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

Is the default path for application default credentials correct? #115

Closed
acroz opened this issue Oct 24, 2019 · 1 comment · Fixed by #116

Comments

@acroz
Copy link
Contributor

@acroz acroz commented Oct 24, 2019

I'm having trouble to get application default credentials to work.

When I call the application default credentials loader directly:

gargle::credentials_app_default()

I get the following error message:

Error in open.connection(con, "rb") : cannot open the connection
In addition: Warning messages:
1: In file(txt) :
  'raw = FALSE' but '/home/faculty/.config/gcloud' is not a regular file
2: In open.connection(con, "rb") :
  cannot open file '/home/faculty/.config/gcloud': it is a directory

gargle appears to be attempting to load ~/.config/gcloud instead of ~/.config/gcloud/application_default_credentials.json.

Could it be that this line

pth <- path_home(".config", "gcloud")

needs to be changed to?:

pth <- path_home(".config", "gcloud", pth)

(Prior to this line pth has been assigned the value "application_default_credentials.json")

@jennybc

This comment has been minimized.

Copy link
Member

@jennybc jennybc commented Oct 24, 2019

You seem to be right. Do you want to make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.