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
1 answer

Google Cloud PubSub - can't seem to get topics

I'm using heroku to run a node.js app that uses gcloud to create a topic, and then subscribe to it. I'm using the following code, as taken from here: https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.16.0/pubsub var gcloud =…
1
vote
1 answer

Same Google Cloud Storage upload script works from one PC, but not the other, Why?

I'm trying to upload a file to Google Cloud Storage from Node.JS (using gcloud package) with Service Account credentials and I get "invalid_grant" error (probably authorization error). When I try to do this from another computer - it work fine, the…
1
vote
2 answers

Master/Slave pattern on Google Cloud using Pub/Sub

We want to build a master slave pattern on Google Cloud. We planned to use Pub/Sub for that (similar to JMS pattern) letting each worker to grab a task from the queue and ack when done. But, it seems like a subscriber can't get messages sent before…
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
  • 8,263
  • 8
  • 50
  • 53
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,179
  • 15
  • 29
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
  • 2,002
  • 1
  • 12
  • 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,413
  • 19
  • 32
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
  • 18
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
  • 947
  • 1
  • 10
  • 23
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

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
  • 6,034
  • 16
  • 78
  • 136
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
  • 6,034
  • 16
  • 78
  • 136