From cb806c4c360ab3c5d399fb4d6c0600356ef439aa Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 18 Mar 2016 14:38:19 -0400 Subject: [PATCH] docs: explain how Datastore requires userinfo scope --- docs/troubleshooting.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 4f1ecdda1c2..e4fcb91ce84 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -58,3 +58,10 @@ async.eachLimit(subscriptions, PARALLEL_LIMIT, deleteSubscription, function(err) This will only allow 10 at a time to go through, making it easier on the API to keep up with your requests. Reference Issue: [#1101](https://github.com/GoogleCloudPlatform/gcloud-node/issues/1101) + + +## I cannot connect to Datastore from a Compute Engine instance. + +Currently, the version of Datastore our library supports (v1beta2) requires not only the `cloud-platform` auth scope, but the `userinfo.email` scope as well. When you create a VM, be sure to select both of these scopes (possibly referred to as "Cloud Datastore" and "User info") in order to access the API from gcloud-node without receiving a 401 error. + +Reference Issue: [#1169](https://github.com/GoogleCloudPlatform/gcloud-node/issues/1169#issuecomment-198428431)