Repository navigation
path.replace is not a function #1445
Description
Activity
What is the value of
key?Its a JSON file downloaded from the Google Dev Console that has
project_id, private_key_id, private_key, client_email, client_id, auth_uriAlso, if is change
keyFilenamebykeyFilethe error is gone but I get another one :Error: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information.Is it the object itself, or a string path to the file? If you want to provide an object, use
credentialsinstead ofkeyFilename.keyFilenameexpects a string path to the JSON file, i.e./Users/stephen/dev/keyfile.json.Reacted by Paul BorenszteinOh alright it's working now, using credentials. I suggest you add it to the documentation, it's pretty confusing (at least for me)
Thanks again ! 👍
Woo! I'll update the other issue as well in case that was the problem over there.
Here's a link to the relevant docs page: https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.37.0/gcloud -- a PR would be awesome if you find a way we can explain better. Thanks!
- addedtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
on Jul 22, 2016 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 17, 2026
Hey guys,
So i'm having the same issue as #1389 and i cannot identify why. Here are the logs of the error :
Environment details
Steps to reproduce
Thanks!