-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unable to load application_default_credentials.json
on Windows
#110
Comments
Sorry for the regression! Huh, that is surprising. While I made a lot of changes, I don't recall any changes that I'd consider relevant for this path. Would you mind bisecting between the last working release and the newer release to see where I broke it? |
Hey @djc, thanks for getting back. FWIW, I don't think What seems to have regressed between I was looking into the Here's the log from
|
Thanks for investigating!
Maybe we should just fix this with a little custom handling in (I don't have easy access to Windows but am happy to test on macOS/Linux.) |
If you are ok with this, I can put together a PR introducing a method to get the path and using conditional compilation (target_os) to have platform-specific implementations. How does that sound? Btw, I filed #111 for the |
Not sure it should be a separate method, but using conditional compilation to refine which path we search |
Created #112. Works on Windows and on MacOS. Let me know if you'd like any changes to the PR. |
Closed via #112 |
On
0.12.1
, my application started failing to get the credentials. Upon investigation, I noticed that0.11.1
wasn't using theapplication_default_credentials.json
file, as I expected but using thegcloud
command to get the authorized user (viaGCloudAuthorizedUser
).The reason for failing to load
application_default_credentials.json
is that, according to the Google Cloud documentation, on Windows theapplication_default_credentials.json
file is located at%APPDATA%\gcloud\application_default_credentials.json
, but the the application tries to load it from%HOMEPATH%/.config/gcloud/application_default_credentials.json
(looking at this line and this line.The text was updated successfully, but these errors were encountered: