Questions tagged [gcloud-node]

gcloud-node is the Google Cloud Client Library for Node.js - an idiomatic, intuitive, and natural way for Node.js developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.

gcloud-node lets you interact with Google Cloud services, such as Datastore and Storage.

Quick Start

$ npm install --save gcloud

Resources

96 questions
1
vote
0 answers

How to disable Docker container to restart for `gcloud preview app run`

I start my Nodejs app with gcloud preview app run . command. Every time I update any file inside the project, gcloud restarts Docker container. It always takes a lot of time. In Google Compute Engine Docs I have found restartPolicy configuration,…
Nik Sumeiko
  • 6,674
  • 8
  • 41
  • 51
1
vote
1 answer

Node.js node-gcloud synchronous call

I'm using node-gcloud https://github.com/GoogleCloudPlatform/gcloud-node to interact with Google Cloud Storage. I'm developing a node.js server (my first node.js project) to provide a small set of APIs to clients. Basically when an user uploads a…
0
votes
0 answers

google spanner close connection

I running my api based on swagger and node. When my api is running for few minutes without a request and then i send an api request to it, I got this error: { Error: {"created":"@1488097564.272436000","description":"Delayed close due to in-progress…
Aron
  • 1,079
  • 10
  • 27
0
votes
1 answer

Google Cloud PubSub giving - A pull requests for subscription went to a server that is temporarily overloaded. Please try the request again

I have 16 workers subscribed to a topic and they are using pull mechanism to retrieve the messages from the queue. I very frequently get Error: A pull requests for subscription '/subscriptions/quizizz-org/socket-worker' went to a server that is…
Akshendra Pratap
  • 1,882
  • 10
  • 25
0
votes
1 answer

Speech-Api daily requests quota counter increses too much after one request

As I am aware of the limitations listed here, I need to receive some clarifications on the quota limit. I'm using the Node.js library to make a simple asynchronous speech-to-text API, using a .raw file which is stored in my bucket. After the request…
0
votes
0 answers

Deploying Python on Nginx Server Google Cloud

I am building an application in Node.js. That application runs a child process which includes a python script. I deploy my application in gcloud which shows 502-Bad Gateway (ngix). Help will be more appreciated. Here is my code..…
iamsuman
  • 1,346
  • 17
  • 29
0
votes
1 answer

GQL queries not working using gcloud (google-cloud) and node.js

I am trying to run the following GQL query: function gqlExample(callback) { datastore.runQuery({ gqlQuery: { queryString: 'SELECT * FROM Person', } }).execute(function(err, result) { if (!err) { // Iterate over the…
BennyTicklez
  • 147
  • 1
  • 17
0
votes
1 answer

Can gcloud nodejs modules see each other?

I'm developing a application that runs client js code inside the node server (not safe, i know). I use node vm, although It seems safe, I want to isolate it in another module so even though some malicious code reads all my node server code and…
felipepastorelima
  • 777
  • 1
  • 6
  • 21
0
votes
1 answer

Why can not use gcloud-node in nodejs project

I just start learning how to use gcloud in nodejs project. And I have already done the following step: npm install gcloud --save But when I use gcloud in the file named writeLog like this: var gcloud = require('gcloud')({ projectId:…
Zoe.D
  • 15
  • 4
0
votes
0 answers

I can't install gcloud on ubuntu

Please Can you help me solve this problem NB: "npm install jsonfile" work perfectly
Mustapha
  • 1
  • 4
0
votes
1 answer

Gzip option for gcloud-node createWriteStream unclear

Google Cloud Storage NodeJS Library v0.33 https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.33.0/storage/file?method=createWriteStream Can anyone clarify what does the gzip option for createWriteStream exactly do? The documentation is a…
t0nyh0
  • 650
  • 3
  • 8
0
votes
3 answers

Connect to real datastore from local

I have my nodejs directory which looks something like this: MyApp -app.js -mycredetnials.json -package.json +node_modules Inside of my app.js file I have the following code:; var options = { projectId:…
user2924127
  • 5,201
  • 10
  • 50
  • 120
0
votes
1 answer

capture err in gcloud-node transaction

I am trying to capture transaction error. I have the following code which should cause an error because these entities already exist, but nothing is being outputted in the console: datastore.runInTransaction(function(transaction, done) { …
user2924127
  • 5,201
  • 10
  • 50
  • 120
0
votes
1 answer

How to perform these operations on entity group

In my app a user has friends. A user can send send requests and confirm friends (marked by the status attribute) and can delete friends. A user can only have X number of friends with X number of pending friends. To store this I have a Kind which…
user2924127
  • 5,201
  • 10
  • 50
  • 120
0
votes
0 answers

Model datastore application

I am looking how to create an efficient model which will satisfy the requirements I put below. I have tried using gcloud-node but have noticed it has limitations with read consistencies, references, etc. I would prefer to write this is nodejs, but…