question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API requests hang indefinitely

See original GitHub issue

Hi,

I’m using google datastore API and if I run my application from my local computer then the application connects to the datastore, but if I deploy the application it cannot connect to the datastore.

Environment details

  • OS: Debian GNU/Linux 8
  • Node.js version: 6.9.4
  • npm version: shipped with Node.js 6.9.4
  • @google-cloud/datastore: 0.6.1

Steps to reproduce

I ran the following example on AppEngine instance:

const Datastore = require('@google-cloud/datastore');

const datastore = Datastore({
      projectId: '<$projectId>',
      keyFilename: './gcloud-keyfile.json'
});

const query = datastore.createQuery('UserModel')
  .filter('user_name', '=', 'gosho');

datastore.runQuery(query)
  .then((results) => {
    const users = results[0];
    users.forEach((user) => console.log(user));
  });

My question is, why cannot my deployed application connect to the datastore?

Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:32 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
stephenpluspluscommented, Feb 8, 2017

Just released google-cloud version 0.46.2 – anyone willing to test, please update and let us know how it went.

1reaction
ofrobotscommented, Feb 7, 2017

We suspect that this is due to a recent change in grpc@1.1.1 not dealing properly with the lack of /etc/services. We are working on an updated version of the Node.js docker image with a work-around that should be available in a few hours.

Could folks try deploying again (in a few hours) with the latest runtime image to see if the problem gets resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web api call is hanging, returns after VERY long time, most of ...
The page loads fine, but looking at the requests it shows that the web api get call is hanging forever, and eventually returns...
Read more >
API call to validate the auth code hanging indefinitely (DUO ...
Hi, we've implemented DUO Universal Prompt in a .Net web app using the .Net DuoUniversal library 1.1.3 published on Nuget.
Read more >
Why does this node.js http request hang indefinitely?
1 Answer 1 ... With http.request() one must always call req.end() to signify the end of the request - even if there is...
Read more >
missing-timeout / W3101 - Pylint 2.16.0-dev documentation
For example for 'requests' the program will never time out (i.e. hang indefinitely). Problematic code: import requests requests.post("http://localhost") ...
Read more >
Sending a GET request to http server hangs indefinitely
To resolve the problem : By POST request: Convert query string to json object and sent to API request with POST. By GET...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found