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 — NodeJS Managed VM receiving 403 on datastore writes (after using gcloud ...deploy --remote) · Issue #783 · googleapis/google-cloud-node

NodeJS Managed VM receiving 403 on datastore writes (after using gcloud ...deploy --remote) #783

New issue
Copy link
New issue
Copy link
Closed
Closed
NodeJS Managed VM receiving 403 on datastore writes (after using gcloud ...deploy --remote)#783
Copy link
Assignees
stephenplusplus

Description

@camilosilva
camilosilva
opened on Aug 6, 2015
Issue body actions

Dear Google Team:

I just tried deploying my NodeJS app to my project with the new remote dockerless option:
"gcloud preview app deploy app.yaml --set-default --remote"
The deployment process seemed to be fine -- meaning no errors occurred while deploying.

After the deployment was performed, Interestingly all my GET requests that read data from the datastore are successful.

However, when I try to POST where the data is supposed to be written to the datastore, I keep receiving the 'Forbidden' 403.

This is very weird and awckard since when I run my node app on my localhost, I am able to read/store to my datastore cloud instance without issues.

Please let me know if this might not be the proper place to address this issue.
I'm about to submit on the Google Groups App Engine as well as in the code.google.com

Thanks for your help.
Camilo.

Activity

  1. stephenplusplus commented on Aug 6, 2015

    @stephenplusplus
    stephenplusplus
    on Aug 6, 2015
    Contributor
    More actions

    We can close here in favor of the progress tracked over at https://github.com/GoogleCloudPlatform/gcloud/issues/31. I don't believe this to be an issue with our library, as it works locally. However, if something needs to be changed on our part, please come back and re-open.

    Please post a link here to the Google Groups post you make.

  2. stephenplusplus
    closed this as completedon Aug 6, 2015
  3. camilosilva commented on Aug 6, 2015

    @camilosilva
    camilosilva
    on Aug 6, 2015
    Author
    More actions

    Thanks for getting back to me so promptly.
    Here's the Google Groups post:
    https://groups.google.com/forum/#!topic/google-appengine/xDmDUy4ora0

    I'll keep you posted if anything. Thanks!

  4. camilosilva commented on Aug 7, 2015

    @camilosilva
    camilosilva
    on Aug 7, 2015
    Author
    More actions

    An important follow up. See below for the stack printout of the error:

    {
    "status": "ERROR",
    "error": {
    "code": 403,
    "message": "Forbidden",
    "stack": "Error: Forbidden\n at Object.parseApiResp (/app/node_modules/gcloud/lib/common/util.js:168:22)\n at Object.handleResp (/app/node_modules/gcloud/lib/common/util.js:139:25)\n at IncomingMessage. (/app/node_modules/gcloud/lib/datastore/request.js:785:16)\n at IncomingMessage.emit (events.js:129:20)\n at _stream_readable.js:908:16\n at process._tickCallback (node.js:355:11)"
    }
    }

    The above is the custom JSON response I have in place.
    Just in case, I have on my local docker version 1.5.0 (in case this matters)
    All of my deployments are now being done with the dockerless option (local testing has been done in the same fashion as well).

    BTW, after going through these instructions again:
    https://googlecloudplatform.github.io/gcloud-node/#/authorization

    I retried with the Service Account authentication and it worked.
    I am not sure why the normal suggested method by using just the Scopes did not work in my case for the Managed VM.

    Anyways, I am good for now. I'm just wondering what the performance implications are by using the service account auth instead of the smoother alternative of using the scopes only.

    Let me know your thoughts. Thanks.

  5. jgeewax commented on Aug 10, 2015

    @jgeewax
    jgeewax
    on Aug 10, 2015
    Contributor
    More actions

    It's possible that when the Managed VM was created, it wasn't getting the access it needed to talk to Datastore (ie, when you create a Compute Engine instance, you need to specifically say "this should be able to talk to Datastore).

    If so, that's an error on our side... @ajessup any thoughts?

  6. jgeewax commented on Aug 10, 2015

    @jgeewax
    jgeewax
    on Aug 10, 2015
    Contributor
    More actions

    /cc @JustinBeckwith

  7. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  8. sofisl
    added a commit that references this issue on Nov 11, 2022

    build: update synthtool sha (#783)

    ccfec03
  9. sofisl
    added a commit that references this issue on Jan 10, 2023

    chore(deps): update dependency jsdoc to v4 (#783)

    e87b80b
  10. sofisl
    added a commit that references this issue on Feb 26, 2026

    fix: year zero was not accepted for SpannerDate (#783)

    e0ca2a9
  11. GautamSharda
    added 2 commits that reference this issue on Mar 5, 2026

    chore: remove duplicate mocha config (#783)

    b67d2e6

    chore: release 1.1.3 (#783)

    03e2e00
  12. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    build: --credential-file-override is no longer required (#783)

    d2cb8cc

    build: --credential-file-override is no longer required (#783)

    0746653
  13. feywind
    added a commit that references this issue on Mar 27, 2026

    chore: release 1.1.3 (#783)

    6dcd478
  14. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    build: --credential-file-override is no longer required (#783)

    627ff53
  15. thiyaguk09
    added a commit that references this issue on May 5, 2026

    build: --credential-file-override is no longer required (googleapis#783)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.