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 — App Engine dev tries and fails to reach Datastore · Issue #233 · googleapis/google-cloud-node

App Engine dev tries and fails to reach Datastore #233

New issue
Copy link
New issue
Copy link
Closed
Closed
App Engine dev tries and fails to reach Datastore#233
Copy link
Assignees
silvolu
Labels
🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
Milestone
Datastore Future

Description

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

Updated 12/12/14

I'm running https://github.com/stephenplusplus/sillycloud/tree/gae with an app.yaml and Dockerfile copied from the appengine quickstart project. I only made small modifications to match my structure.

When I run gcloud preview app run . I see that my routes are correctly configured. I have a handler for GET requests to /api/users: https://github.com/stephenplusplus/sillycloud/blob/master/actions.js#L10. The first api request, runQuery, is where I start experiencing errors.

NOTE: I'm using my branch from #328 to test against

See #233 (comment) for the error I'm experiencing.

Activity

Next
  1. rakyll commented on Sep 21, 2014

    @rakyll
    rakyll
    on Sep 21, 2014
    Contributor
    More actions

    I will return back to issue when I get back to the office tomorrow, likely that I can peer with @rrch to discover the missing parts.

  2. silvolu
    closed this as completedon Sep 22, 2014
  3. silvolu
    reopened this on Sep 22, 2014
  4. rakyll commented on Sep 22, 2014

    @rakyll
    rakyll
    on Sep 22, 2014
    Contributor
    More actions

    @silvolu was able to figure out which hostname we should use, should update the issue.

  5. silvolu commented on Sep 22, 2014

    @silvolu
    silvolu
    on Sep 22, 2014
    Contributor
    More actions

    Yeah sorry, hostname is ok, but the port should be read from process.env.GAE_SERVER_PORT.
    I'm having problems writing to the datastore though, still investigating.

  6. rakyll commented on Sep 22, 2014

    @rakyll
    rakyll
    on Sep 22, 2014
    Contributor
    More actions

    I'm not sure if we should skip the Authorization header if mock server runs on localhost:8080. I haven't read their code, but could be a possibility.

  7. stephenplusplus
    added
    in progress
    on Sep 30, 2014
  8. stephenplusplus commented on Oct 1, 2014

    @stephenplusplus
    stephenplusplus
    on Oct 1, 2014
    ContributorAuthor
    More actions

    I started using the correct port, GAE_SERVER_PORT.

    When I run GET /api/users, which uses gcloud to run POST /datastore/v1beta2/datasets/nth-circlet-705/runQuery, this is what the gcloud console shows:

    ...
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9938s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9940s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9941s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9943s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9944s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9945s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9946s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9947s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9948s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9949s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9950s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9951s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9951s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9952s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9953s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9954s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 3> after 9.9955s pending
    INFO: sillycloud: "POST /datastore/v1beta2/datasets/nth-circlet-705/runQuery HTTP/1.1" 503 -
    DEBUG: Request handled by <Instance 0: 1/1, total: 3> in 10.0251s
    INFO: sillycloud: "GET /api/users HTTP/1.1" 200 9
    

    When I try to add a user (POST /api/users which makes a POST /datastore/v1beta2/datasets/nth-circlet-705/commit), it has similar output:

    ...
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9981s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9982s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9983s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9984s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9985s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9986s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9987s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9989s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9990s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9991s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9992s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9993s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9994s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9995s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9996s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9997s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9998s pending
    DEBUG: Dispatching request to <Instance 0: 1/1, total: 4> after 9.9999s pending
    INFO: sillycloud: "POST /datastore/v1beta2/datasets/nth-circlet-705/commit HTTP/1.1" 503 -
    

    So, my API requests are tried for 10 seconds, but inevitably timeout and return 503s.

    My request header:

    POST /datastore/v1beta2/datasets/nth-circlet-705/commit HTTP/1.1
    Content-Type: application/x-protobuf
    User-Agent: gcloud-node/0.4.0
    Host: 10.0.2.2:8080
    Connection: keep-alive
    Transfer-Encoding: chunked
    
  9. stephenplusplus commented on Dec 12, 2014

    @stephenplusplus
    stephenplusplus
    on Dec 12, 2014
    ContributorAuthor
    More actions

    2 months later, I'm going to see if anything magically fixed itself. 👍 🔍

  10. stephenplusplus
    changed the title [-]App Engine dev throws Python error when trying to access API[/-] [+]App Engine dev tries and fails to reach Datastore[/+] on Dec 12, 2014
  11. stephenplusplus commented on Dec 12, 2014

    @stephenplusplus
    stephenplusplus
    on Dec 12, 2014
    ContributorAuthor
    More actions

    Nothing magical. Same errors as above. Updated the initial post in this thread with the latest steps to reproduce.

  12. stephenplusplus
    removed
    in progress
    on Dec 22, 2014
  13. stephenplusplus
    added
    api: datastoreIssues related to the Datastore API.
    on Jan 20, 2015
  14. jgeewax
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 2, 2015
  15. jgeewax
    added this to the Datastore Stable milestone on Feb 2, 2015
  16. 40 remaining items

  17. miguelvelezsa
    added a commit that references this issue on Jan 21, 2026

    Release v0.9.5 (#233)

    8a52261
  18. miguelvelezsa
    added a commit that references this issue on Jan 29, 2026

    build(node_library): migrate to Trampoline V2 (#233)

    62e22fc
  19. sofisl
    added a commit that references this issue on Feb 4, 2026

    Release v0.9.5 (#233)

    4bee665
  20. GautamSharda
    added a commit that references this issue on Feb 25, 2026

    chore: add api_shortname and library_type to repo metadata (#233)

    329b3e8
  21. sofisl
    added a commit that references this issue on Feb 26, 2026

    refactor: drop dependency on lodash.flatten (#233)

    1cc6947
  22. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    Release v4.0.1 (#233)

    a3f6cc1
  23. codyoss
    added 2 commits that reference this issue on Mar 9, 2026

    build: rename _toc to toc (#233)

    44f6d08

    build: rename _toc to toc (#233)

    45839c4
  24. GautamSharda
    added 3 commits that reference this issue on Mar 12, 2026

    build(node_library): migrate to Trampoline V2 (#233)

    f493e5f

    build(node_library): migrate to Trampoline V2 (#233)

    0aa5f72

    Expose the parent property on service-object (#233)

    9f065d4
  25. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    Allow creating a Bigtable instance without the new keyword. (#233)

    a68aea9

    Allow creating a Bigtable instance without the new keyword. (#233)

    9229e77
  26. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    Allow creating a Bigtable instance without the new keyword. (#233)

    513a7bc
  27. thiyaguk09
    added a commit that references this issue on May 5, 2026

    Allow creating a Bigtable instance without the new keyword. (googleap…

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

Metadata

Metadata

Assignees

  • @silvolu
    silvolu

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage 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

    • Datastore FutureNo due date

    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.