API requests hang indefinitely
See original GitHub issueHi,
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:
- Created 7 years ago
- Reactions:3
- Comments:32 (12 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just released
google-cloud
version0.46.2
– anyone willing to test, please update and let us know how it went.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?