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

Out of memory when using readStream on big files

I tried to download 50GB File from Google Cloud Platform to my local machine. I used GCP's getReadStream function, and I saw that the memory usage was increasing dramatically until the process crashed. What is the best practice for using your…
Eyal Greif
  • 11
  • 2
1
vote
1 answer

Automatic pagination in google-cloud-node

The datastore nodejs docs mention that the client library will do automatic pagination by default: By default, google-cloud-node will automatically paginate through all of the results that match a query. However, this sample implements manual …
reoh
  • 282
  • 5
  • 12
1
vote
0 answers

GCloud Vision - Bad results for node api compare to the Vision landing page demo

I'm using the gcloud Node SDK to detect text in small images. It works ok for most of the samples but then, there are a couple of rather obvious image samples that somehow GCloud fails to read. However when i try the exact image on Vision landing…
maephisto
  • 4,952
  • 11
  • 53
  • 73
1
vote
2 answers

GCloud pubsub emulator doesn't respect "PUBSUB_EMULATOR_HOST" environment variable

I tried running the pubsub emulator locally and send messages to it with existing services that I have running on pubsub. Messages weren't received, and all I get are auth errors in the logs. [pubsub] Jan 22, 2017 3:43:16 PM…
1
vote
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
  • 690
  • 3
  • 9
1
vote
1 answer

GCloud VM instance not starting Node app

I tried running my node app on localhost as well as the google VM. The app runs fine if I login to putty\ssh of the Google cloud VM and start the node application (from /opt/app folder). I can login to browser and access the application via the…
Don Woodward
  • 121
  • 2
  • 8
1
vote
0 answers

How can get gmail new email push notification on node backend?

I'm developing node application, that needs to process some data when new email appears in GMAIL. I know how setup pub/sub messaging for all actions on INBOX, but i wonder whether there is a possibility to only get notifications about new…
Rantiev
  • 2,121
  • 2
  • 32
  • 56
1
vote
1 answer

Google Cloud Storage - Error during upload: gcs-resumable-upload.json renaming operation not permitted

I'm simply trying to follow this tutorial on how to upload files to gcs with Node and Express. But the following error keep causing my app to crash. Usually, I am able to upload one file without a problem in the first run. But I will get this error…
James Wang
  • 11
  • 6
1
vote
2 answers

Do datastore transactions need rollback when saving or deleting?

In the example for dataset.runInTransaction (link), there is explicit error handling that occurs on transaction.get(key,callback). But on other operations, such as transaction.save(entity) or transaction.delete(key), there are no callbacks, so…
1
vote
1 answer

Multiple select in google datastore query throwing ApiError: Precondition Failed error in node

I'm using following query to retrieve some entities from google Datastore: var query = datastore.createQuery(namespace,tableName); query.select(['displayName','username']); datastore.getEntitySet(query,function(err,data){ if(err){ …
1
vote
0 answers

gcloud appengine socketio is always disconnect

I am working over gcloud, I use nodejs and socketIO, I am working with simple socket networking, connection, disconnect and ping. Everything is working great over my local linux machine. When I deploy to gcloud, it doesn't work. I got disconnection…
Mostafa Khattab
  • 554
  • 6
  • 18
1
vote
1 answer

gcloud nodejs createDataset: How to set data location?

When I create a dataset using the expression below, it commits but doesn't set any location and when I try to copy data from other dataset I have an error because they in different locations: source: EU, destination:…
Jorge Z
  • 25
  • 6
1
vote
1 answer

gcloud module loading is slow

I'm using gcloud nodejs module. Whenever I make changes, nodeJS will reload (using nodemon) and it has to load all the dependencies. Everything is fast, except when it comes to gcloud. It takes considerable amount of time (like 10-20 seconds) for…
viji
  • 2,706
  • 5
  • 28
  • 34
1
vote
1 answer

NodeJs Google Compute Engine Invalid ELF Header when using 'gcloud' module

I am working on a project that requires me to use the gcloud nodejs module. I am testing this project locally using node app and locally on gcloud using gcloud preview app run app.yaml . When I have the following code in my file the project runs…
1
vote
1 answer

gcloud-node to access bearer token?

will the gcloud-node API give me the bearer token it is using? I'm able to create signed urls with gcloud-node and the keyfile.json but I'm trying to follow the resumable download docs. they suggest starting an upload on the server and passing the…
navicore
  • 1,979
  • 4
  • 34
  • 50