GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GAE + GCE support · Issue #210 · googleapis/google-cloud-node

GAE + GCE support #210

New issue
Copy link
New issue
Copy link
Closed
Closed
GAE + GCE support#210
Copy link
Assignees
stephenplusplus
Labels
🚨This issue needs some love.coretriage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Core Stable

Description

@stephenplusplus
stephenplusplus
opened on Sep 15, 2014
Issue body actions

GAE

GAE support is still underway so I'll leave this part out for now.

GCE

I created an instance:

$ gcloud compute instances create silliestcloud --scopes https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/devstorage.full_control

And initiate gcloud like this:

var gcloud = require('gcloud');

var dataset = new gcloud.datastore.Dataset();
var bucket = new gcloud.storage.Bucket({
  bucketName: 'sillycloud'
});

When accessing a file from my bucket, everything goes smoothly. However, when trying to run a query on my dataset, I get a 403:

Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.

I'm able to retrieve a token without an issue, but still receive that error after making the request. Any idea if this is a problem with my project/account, or a problem with gcloud?

After reading Authenticating from Google Compute Engine, I saw a line:

When you create a Google Compute Engine project, Google Compute Engine also creates a service account for that project. This service account authenticates the project to other Google services but you can also use the service account to authenticate your instances to other APIs. This is ideal for cases when you have applications running within instances that need to programmatically talk between services but don't need access to user data.

Any chance our need for the userinfo.email scope could qualify for "user data"?

Activity

Next
  1. proppy commented on Sep 15, 2014

    @proppy
    proppy
    on Sep 15, 2014
    Contributor
    More actions

    @stephenplusplus did you enable the Google Cloud Datastore API for your project?

  2. stephenplusplus commented on Sep 15, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 15, 2014
    ContributorAuthor
    More actions

    Yes, and I should mention I've been getting this error for the last couple days, but at first I was able to access without any errors. It also works if I specify the credentials manually:

    new gcloud.datastore.Dataset({
      credentials: { /* contents of json key file */ }
    });
  3. silvolu commented on Sep 16, 2014

    @silvolu
    silvolu
    on Sep 16, 2014
    Contributor
    More actions

    @stephenplusplus I now have a GCE instance running sillycloud, and I cannot reproduce your issue. I'll keep it around and monitor it for some days.

  4. stephenplusplus commented on Sep 16, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 16, 2014
    ContributorAuthor
    More actions

    Hmm. Well, that's good to hear, since that means our GCE support wasn't compromised, but disappointing that I don't know how to fix.

    I wonder if you tried making a change to see if you can surpass the limit that I'm exceeding. If you want to run an experiment, pasting the below as the getUsers function (https://github.com/stephenplusplus/sillycloud/blob/master/actions.js#L10) should run the query once every 100 ms until it reaches 20 attempts (as written, feel free to change timesToRun and intervalMs).

    function getUsers(req, res) {
      var ran = 0;
      var timesToRun = 20;
      var intervalMs = 100;
      var query = dataset.createQuery(['Users']);
      var interval = setInterval(function() {
        if (++ran <= timesToRun) {
          dataset.runQuery(query, function(err, results) {
            if (ran === timesToRun) {
              _handleResponse(res)(err, results);
            }
          }
        } else {
          clearInterval(interval);
        }
      }, intervalMs);
    }

    Just an idea. I'm desperate to find a fix to this. Thanks for testing!

    // edit: if you know of a less abusive way to get to the same ends, that's probably better :)

  5. ryanseys
    modified the milestone: This milestone has been deleted on Sep 18, 2014
  6. stephenplusplus commented on Sep 21, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 21, 2014
    ContributorAuthor
    More actions

    GCE resolved 👍

    GAE still being worked on in #233.

  7. stephenplusplus
    closed this as completedon Sep 21, 2014
  8. jgeewax
    added
    core
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 2, 2015
  9. jgeewax
    modified the milestones: Core Stable, This milestone has been deleted on Feb 2, 2015
  10. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  11. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  12. 58 remaining items

  13. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    fix(deps): update dependency google-auth-library to v2 (#210)

    671d445
  14. sofisl
    added a commit that references this issue on Mar 5, 2026

    docs: use the jsdoc-fresh theme (#210)

    9c88604
  15. codyoss
    added 2 commits that reference this issue on Mar 9, 2026

    chore: update lint ignore files (#210)

    3933844

    chore: update lint ignore files (#210)

    48fd76b
  16. GautamSharda
    added a commit that references this issue on Mar 11, 2026

    chore: drop dependency on @google-cloud/common (#210)

    bba85f8
  17. codyoss
    added a commit that references this issue on Mar 12, 2026

    build: add srs yaml file (#210)

    7531dc1
  18. GautamSharda
    added 3 commits that reference this issue on Mar 12, 2026

    chore(deps): update dependency @types/mocha to v8 (#210)

    42c4b2b

    chore(deps): update dependency @types/mocha to v8 (#210)

    54176ee

    feat: make HTTP dependency configurable (#210)

    0f64053
  19. sofisl
    added a commit that references this issue on Mar 17, 2026

    fix: update pack-n-play to 2023 compiler option to match gts (#210)

    7359099
  20. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    fix: signedURL cname (googleapis#210) (googleapis#234)

    991ea22
  21. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix: update linking for samples (#210)

    4ae77c9

    fix: update linking for samples (#210)

    95076ec
  22. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix: update linking for samples (#210)

    2dc43b4
  23. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix: update linking for samples (googleapis#210)

    f8dfeb9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

🚨This issue needs some love.coretriage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    • Core Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.