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

projectID requirement not consistently documented #1599

Closed
ptone opened this issue Sep 18, 2016 · 1 comment
Closed

projectID requirement not consistently documented #1599

ptone opened this issue Sep 18, 2016 · 1 comment
Assignees
Labels

Comments

@ptone
Copy link

ptone commented Sep 18, 2016

on:
https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.40.0/google-cloud

Documents on compute engine setup as:

 var gcloud = require('google-cloud')();

But runtime errors, and the sample on the package home page make clear that the projectID has to be explicit (not sure why can't pick up from metadata server?)

https://googlecloudplatform.github.io/google-cloud-node/#/

@stephenplusplus
Copy link
Contributor

We can't make an async request to the metadata server, but we do pick it up from the environment variable GCLOUD_PROJECT. We mention this in our Authentication guide, but it would be helpful to clear this up in our config parameter docs.

Sent a PR, please take a look: #1601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants