-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API requests hang indefinitely #1955
Comments
+1 |
Please try upgrading to the latest version of |
Hi stephenplusplus, I use the latest version of @google-cloud/datastore - 0.6.1 |
+1 again |
Sorry, I forgot to publish to npm. Please try |
I'm getting the same issue, and I've tried 0.7.0 too. Any idea how to resolve this, or the last working version? |
To everybody: Do you get an error? How are you authenticating? |
Hi, Hope this helps var datastore = require('@google-cloud/datastore')({ projectId: <Project ID> });
var item = datastore.key(['Key', 'Value']);
datastore.get(item, function(err, result)
{
... It doesn't return with an err or result. I don't authenticate at any point. As this is server code I wasn't expecting to need to? |
I'm running this through App Engine. I tried to remove the projectId as advised if running inside Google Cloud. https://www.npmjs.com/package/@google-cloud/datastore However, then it did call the callback with the error "Error: Sorry, we cannot connect to Google Cloud Services without a project ID. You may specify one with an environment variable named "GCLOUD_PROJECT". See https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/authentication for a detailed guide on creating an authenticated connectio..." I then added the GCLOUD_PROJECT variable and I have the same problem as before. |
@jmdobry I'm spinning my wheels a bit trying to get an app running on GAE-- are you able to try deploying a sample Datastore app to GAE to see if you can reproduce these errors? Error 1: |
To debug I need from y'all:
Note when running on Google App Engine flexible environment you should instantiate the Cloud Datastore client library without passing in |
Also need to know if you have a |
Output of gcloud --version: Google Cloud SDK 141.0.0 |
I can't see a yarn.lock in my project root, if that's where it should be. [START app_yaml]runtime: nodejs automatic_scaling: handlers:
skip_files:
env_variables: [END app_yaml] |
Note that But none of that has much to do with the hanging Datastore API calls. I've been able to reproduce the problem using three different versions of |
I'm getting the same problem, can't connect. This is a pretty big issue, any fix planned? Fwiw 0.1.1 works... |
I'm getting the same errors (i.e. no errors and hung calls.) manual_scaling: health_check: |
Can anyone comment on whether this issue also appears on Google Compute Engine and/or Google Container Engine? |
My node server (that exhibits the same issue) is running in the Flexible Environment (GCE based). |
I've tried updating to Node 6.9.5 but it made no difference unfortunately |
I ran into this issue, was using app engine (flex+nodejs). Problem seems to be the google nodejs docker file, I created my own custom docker (https://nodejs.org/en/docs/guides/nodejs-docker-webapp/) and my app was able to connect to datastore from app engine. EDIT: |
We suspect that this is due to a recent change in Could folks try deploying again (in a few hours) with the latest runtime image to see if the problem gets resolved? |
Would be happy to. I have a number of great test cases.
…On Tue, 7 Feb 2017, 04:38 Ali Ijaz Sheikh, ***@***.***> wrote:
We suspect that this is due to a recent change in ***@***.*** 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
<GoogleCloudPlatform/nodejs-docker#79> 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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1955 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADdMei00Do1RsRXqlikcpfprMQqpRiRIks5rZ9kHgaJpZM4L1L4X>
.
|
I added the "netbase" patch to my package.json as a workaround to regain access to datastore from express server. The workaround was suggested here (#1946) |
grpc@1.1.2 has been published, and it should not have this failure. |
Just released |
It's working! It's alive! Thanks everyone! |
I'd be happy to test, but I only import the datastore specifically so would need to wait until you released 0.7.1 of @google-cloud/datastore |
The sub-modules will automatically include the fix if you un- and re-install them. |
Thanks - looks to work now :) |
Great, thanks for the patience and the help, everyone! If anyone is still having issues after a hard upgrade, let us know. |
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
Steps to reproduce
I ran the following example on AppEngine instance:
My question is, why cannot my deployed application connect to the datastore?
Thanks!
The text was updated successfully, but these errors were encountered: